|
@@ -4,7 +4,7 @@ Filter Field Definition
|
|
|
These fields are displayed inside the filter box. They allow you to filter
|
|
|
the list of entities by a number of different methods.
|
|
|
|
|
|
-A filter instance is always linked to a Form Type, there is 3 types availables :
|
|
|
+A filter instance is always linked to a Form Type, there are 3 types available :
|
|
|
|
|
|
- sonata_type_filter_number : display 2 widgets, the operator ( >, >=, <= , <, =) and the value
|
|
|
- sonata_type_filter_choice : display 2 widgets, the operator (yes and no) and the value
|
|
@@ -22,17 +22,17 @@ The ``add`` method accepts 4 arguments :
|
|
|
- the field type : the type of widget used to render the value part
|
|
|
- the field options : the type options
|
|
|
|
|
|
-Type available
|
|
|
----------------
|
|
|
+Filter types available
|
|
|
+----------------------
|
|
|
|
|
|
For now, only Doctrine ORM filters are available
|
|
|
|
|
|
- - doctrine_orm_boolean : depends on the ``sonata_type_filter_default`` Form Type, render yes or no field
|
|
|
+ - doctrine_orm_boolean : depends on the ``sonata_type_filter_default`` Form Type, renders yes or no field
|
|
|
- doctrine_orm_callback : depends on the ``sonata_type_filter_default`` Form Type, types can be configured as needed
|
|
|
- - doctrine_orm_choice : depends on the ``sonata_type_filter_choice`` Form Type, render yes or no field
|
|
|
+ - doctrine_orm_choice : depends on the ``sonata_type_filter_choice`` Form Type, renders yes or no field
|
|
|
- doctrine_orm_model : depends on the ``sonata_type_filter_number`` Form Type
|
|
|
- doctrine_orm_string : depends on the ``sonata_type_filter_choice``
|
|
|
- - doctrine_orm_number : depends on the ``sonata_type_filter_choice`` Form Type, render yes or no field
|
|
|
+ - doctrine_orm_number : depends on the ``sonata_type_filter_choice`` Form Type, renders yes or no field
|
|
|
|
|
|
|
|
|
Example
|