Skip to content

Commit

Permalink
Update index.html.md
Browse files Browse the repository at this point in the history
  • Loading branch information
robiinho committed May 14, 2024
1 parent 99565b4 commit 77a20f3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,25 @@ Note that implementing your own criteria overrides the default, meaning searchin
longer work automatically. Add the `SearchCriteriaProvider` manually to combine the default behavior
with your own implementation.

### SearchBuilder criteria
```
'criteria' => [
new SearchBuilderCriteriaProvider($request),
new SearchCriteriaProvider(),
],
```
Doctrine extension are needed: https://github.com/beberlei/DoctrineExtensions/tree/master
To enable extensions : config/packages/doctrines.yaml
```
orm:
dql:
datetime_functions:
date: DoctrineExtensions\Query\Mysql\Date
year: DoctrineExtensions\Query\Mysql\Year
yearmonth: DoctrineExtensions\Query\Mysql\YearMonth
```
### Events
```php?start_inline=1
Expand Down

0 comments on commit 77a20f3

Please sign in to comment.