diff --git a/src/Symfony/Bundle/DoctrineBundle/Registry.php b/src/Symfony/Bundle/DoctrineBundle/Registry.php index 5f2144ad95..9198251c17 100644 --- a/src/Symfony/Bundle/DoctrineBundle/Registry.php +++ b/src/Symfony/Bundle/DoctrineBundle/Registry.php @@ -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(); } /**