Kdyby\Doctrine\Registry::getAliasNamespace PHP Method

getAliasNamespace() public method

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