Doctrine\ORM\Query\Filter\SQLFilter
The base class that user defined filters should extend.
Handles the setting and escaping of parameters.
- Author: Alexander <iam.asm89@gmail.com>
Synopsis
class SQLFilter
{
- // members
- private EntityManager $em;
- private array $parameters;
- // methods
- public final void __construct()
- public final SQLFilter setParameter()
- public final string getParameter()
- public final string __toString()
- public abstract string addFilterConstraint()
Members
private
- $em
—
Doctrine\ORM\EntityManager
The entity manager. - $parameters
—
array
Parameters for the filter.
Methods
public
- __construct() — Constructs the SQLFilter object.
- __toString() — Returns as string representation of the SQLFilter parameters (the state).
- addFilterConstraint() — Gets the SQL query part to add to a query.
- getParameter() — Gets a parameter to use in a query.
- setParameter() — Sets a parameter that can be used by the filter.