1
0
mirror of synced 2025-01-18 22:41:43 +03:00

Update en/reference/filters.rst

This commit is contained in:
Benjamin Eberlei 2013-01-13 09:37:45 +01:00
parent fbd1e7bc45
commit 47043a54a5

View File

@ -23,6 +23,11 @@ illustrate how the filter feature works. A filter class must extend the base
method. The method receives the ``ClassMetadata`` of the filtered entity and the
table alias of the SQL table of the entity.
.. note::
In the case of joined or single table inheritance, you always get passed the ClassMetadata of the
inheritance root. This is necessary to avoid edge cases that would break the SQL when applying the filters.
Parameters for the query should be set on the filter object by
``SQLFilter#setParameter()``. Only parameters set via this function can be used
in filters. The ``SQLFilter#getParameter()`` function takes care of the