Target entity resolver for DQL
Since we have target entity resolver in doctrine this class check is not enought. To gain interface resolution it is better to add interface check in addition to class_check here.
This commit is contained in:
parent
2983081a60
commit
752d4f9eac
@ -965,7 +965,7 @@ class Parser
|
||||
$schemaName = $this->em->getConfiguration()->getEntityNamespace($namespaceAlias) . '\\' . $simpleClassName;
|
||||
}
|
||||
|
||||
$exists = class_exists($schemaName, true);
|
||||
$exists = class_exists($schemaName, true) || interface_exists($schemaName, true);
|
||||
|
||||
if ( ! $exists) {
|
||||
$this->semanticalError("Class '$schemaName' is not defined.", $this->lexer->token);
|
||||
|
Loading…
x
Reference in New Issue
Block a user