-
-
-
-
-
-
-
Builds a Doctrine Query based on the passed values.
returns A Doctrine Query object
-
-
(Doctrine_Query) doBuildQuery ($values)
Browse code
Builds a Doctrine query with processed values.
Overload this method instead of {@link buildQuery()} to avoid running
{@link processValues()} multiple times.
-
-
-
Returns the fields and their filter type.
returns An array of fields with their filter type
-
(string) getModelName ()
Browse code
Returns the current model name.
returns The model class name
-
Returns a Doctrine Query based on the current values form the form.
returns A Doctrine Query object
-
(string) getRelatedModelName ($alias)
Browse code
Returns the name of the related model.
throws InvalidArgumentException If no relation with the supplied alias exists on the current model
-
-
(string) getTableMethod ()
Browse code
Get the name of the table method used to retrieve the query object for the filter
-
(array) processValues ()
Browse code
Processes cleaned up values with user defined methods.
To process a value before it is used by the buildQuery() method,
you need to define an convertXXXValue() method where XXX is the PHP name
of the column.
The method must return the processed value or false to remove the value
from the array of cleaned up values.
returns An array of cleaned up values processed by the user defined methods
-
Sets the query object to use.
-
setTableMethod ($tableMethod)
Browse code
Set the name of the table method used to retrieve the query object for the filter
The specified method will be passed the query object before any changes
are made based on incoming parameters.
-
Used in generated forms when models use inheritance.