Doctrine\ORM\Query\ParserResult
Encapsulates the resulting components from a DQL query parsing process that can be serialized.
- Author: Guilherme Blanco <guilhermeblanco@hotmail.com>
- License: http://www.opensource.org/licenses/lgpl-license.php LGPL
Synopsis
class ParserResult
{
- // members
- private AbstractSqlExecutor $_sqlExecutor;
- private ResultSetMapping $_resultSetMapping;
- private array $_parameterMappings;
- // methods
- public void __construct()
- public ResultSetMapping getResultSetMapping()
- public void setResultSetMapping()
- public void setSqlExecutor()
- public AbstractSqlExecutor getSqlExecutor()
- public void addParameterMapping()
- public array getParameterMappings()
- public array getSqlParameterPositions()
Members
private
- $_parameterMappings
—
array
The mappings of DQL parameter names/positions to SQL parameter positions. - $_resultSetMapping
—
\Doctrine\ORM\Query\ResultSetMapping
The ResultSetMapping that describes how to map the SQL result set. - $_sqlExecutor
—
\Doctrine\ORM\Query\Exec\AbstractSqlExecutor
The SQL executor used for executing the SQL.
Methods
public
- __construct() — Initializes a new instance of the <tt>ParserResult</tt> class.
- addParameterMapping() — Adds a DQL to SQL parameter mapping. One DQL parameter name/position can map to several SQL parameter positions.
- getParameterMappings() — Gets all DQL to SQL parameter mappings.
- getResultSetMapping() — Gets the ResultSetMapping for the parsed query.
- getSqlExecutor() — Gets the SQL executor used by this ParserResult.
- getSqlParameterPositions() — Gets the SQL parameter positions for a DQL parameter name/position.
- setResultSetMapping() — Sets the ResultSetMapping of the parsed query.
- setSqlExecutor() — Sets the SQL executor that should be used for this ParserResult.