1
0
mirror of synced 2025-03-06 21:06:16 +03:00

clear code

This commit is contained in:
ReenExe 2016-07-01 01:20:52 +03:00
parent 015ec444c5
commit 8eef0beacb

View File

@ -827,18 +827,14 @@ class Parser
return;
}
$foundRootEntity = false;
foreach ($this->identVariableExpressions as $dqlAlias => $expr) {
if (isset($this->queryComponents[$dqlAlias]) && $this->queryComponents[$dqlAlias]['parent'] === null) {
$foundRootEntity = true;
return;
}
}
if ( ! $foundRootEntity) {
$this->semanticalError('Cannot select entity through identification variables without choosing at least one root entity alias.');
}
}
/**
* QueryLanguage ::= SelectStatement | UpdateStatement | DeleteStatement