Symfony\Bundle\DoctrineBundle\Registry::getEntityNamespace PHP Method

getEntityNamespace() public method

This method looks for the alias in all registered entity managers.
See also: Configuration::getEntityNamespace
public getEntityNamespace ( string $alias ) : string
$alias string The alias
return string The full namespace
    public function getEntityNamespace($alias)
    {
        foreach (array_keys($this->entityManagers) as $name) {
            try {
                return $this->getEntityManager($name)->getConfiguration()->getEntityNamespace($alias);
            } catch (ORMException $e) {
            }
        }

        throw ORMException::unknownEntityNamespace($alias);
    }