how to override search form for an entity in EasyAdminBundle? and the right way to override search action for this entity? thank's
Asked
Active
Viewed 1,175 times
1
-
Hi, Please give a little more information about what `EasyAdminBundle` is and how you're trying to use it. Any code examples or references you can provide will help people answer the question. – reconbot Feb 18 '17 at 17:20
1 Answers
2
A proper way how to override search (and any) action in EasyAdminBundle is described in the official documentation.
In most cases, you probably won't need to override the whole search action. Maybe you just need to adjust the query builder criterias so it returns different results or filters it out. You can use Doctrine Criterias to do that.
I wrote a detailed tutorial how to filter out, for example, null values from a search result set in EasyAdminBundle. You can use it to change any search query in any way accordingly.

Ivan Kvasnica
- 776
- 5
- 13