use getObjectNamespace() in getEntityNamespace()

This commit is contained in:
Lukas Kahwe Smith 2011-09-25 13:51:18 +02:00
parent 0217a0ee41
commit 2b89e15bfb

View File

@ -105,14 +105,7 @@ class Registry extends ManagerRegistry implements RegistryInterface
*/ */
public function getEntityNamespace($alias) public function getEntityNamespace($alias)
{ {
foreach (array_keys($this->getManagers()) as $name) { return $this->getObjectNamespace();
try {
return $this->getManager($name)->getConfiguration()->getEntityNamespace($alias);
} catch (ORMException $e) {
}
}
throw ORMException::unknownEntityNamespace($alias);
} }
/** /**