This Symfony2 bundle aims to provide classes to build some form types dedicated to filter an entity. One you created your form type you will be able to update a doctrine query builder conditions from a form type.
The idea is:
- Create a form type extending from
- Add form fields by using provided filter types (e.g. use
- Then call a service to build the query from the form instance and execute your query to get your result :).
(*): In fact you can use any type, but if you want to apply a filter by not using a
filter_xxx type you will have to create a custom listener class to apply the filter for this type.
master branch is compatible with Symfony 2.7 or higher, if you are using Symfony 2.0.x use the
For installation and how to use the bundle refer to Resources/doc/index.md
Running the test suite
composer install bin/phpunit