doctrine/orm · error · LogicException
This ParserResult lacks both the SqlFinalizer as well as the
Error message
This ParserResult lacks both the SqlFinalizer as well as the (legacy) SqlExecutor
What it means
Error "This ParserResult lacks both the SqlFinalizer as well as the (legacy) SqlExecutor" thrown in doctrine/orm.
Source
Thrown at src/Query/ParserResult.php:130
return $this->sqlExecutor;
}
public function setSqlFinalizer(SqlFinalizer $finalizer): void
{
$this->sqlFinalizer = $finalizer;
}
public function prepareSqlExecutor(Query $query): AbstractSqlExecutor
{
if ($this->sqlFinalizer !== null) {
return $this->sqlFinalizer->createExecutor($query);
}
if ($this->sqlExecutor !== null) {
return $this->sqlExecutor;
}
throw new LogicException('This ParserResult lacks both the SqlFinalizer as well as the (legacy) SqlExecutor');
}
/**
* Adds a DQL to SQL parameter mapping. One DQL parameter name/position can map to
* several SQL parameter positions.
*/
public function addParameterMapping(string|int $dqlPosition, int $sqlPosition): void
{
$this->parameterMappings[$dqlPosition][] = $sqlPosition;
}
/**
* Gets all DQL to SQL parameter mappings.
*
* @phpstan-return array<int|string, list<int>> The parameter mappings.
*/
public function getParameterMappings(): array
{View on GitHub (pinned to d9b9ff7301)
When it happens
Trigger: Thrown at src/Query/ParserResult.php:130 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of doctrine/orm@d9b9ff7301 (2026-08-21).
Data as JSON: /api/errors/ea077bedf6099a23.
Report an issue: GitHub.