Skip to content

Commit 35af6e4

Browse files
authoredApr 1, 2018
Update fuzzy_wildcard_range_negative_search.md
1 parent 8f9b6e3 commit 35af6e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎Resources/doc/fuzzy_wildcard_range_negative_search.md

+5
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ Default ClassFinder implementation provides a special method for Range search ([
7070
$myEntities = $finder->findByRange(1, 23, ['popularity',..]);
7171
```
7272

73+
To search by date you can use the following approach:
74+
```
75+
$myEntities = $finder->findByRange($startDate->format(DateField::FORMAT), $endDate->format(DateField::FORMAT), ['date']);
76+
```
77+
7378
The search result will consist entities having "popularity" from 1 to 23 inclusive.
7479

7580
The following arguments are available:

0 commit comments

Comments
 (0)