clear code
This commit is contained in:
parent
015ec444c5
commit
8eef0beacb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user