use getObjectNamespace() in getEntityNamespace()
This commit is contained in:
parent
0217a0ee41
commit
2b89e15bfb
@ -105,14 +105,7 @@ class Registry extends ManagerRegistry implements RegistryInterface
|
||||
*/
|
||||
public function getEntityNamespace($alias)
|
||||
{
|
||||
foreach (array_keys($this->getManagers()) as $name) {
|
||||
try {
|
||||
return $this->getManager($name)->getConfiguration()->getEntityNamespace($alias);
|
||||
} catch (ORMException $e) {
|
||||
}
|
||||
}
|
||||
|
||||
throw ORMException::unknownEntityNamespace($alias);
|
||||
return $this->getObjectNamespace();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user