Symfony\Bundle\DoctrineBundle\Registry::getEntityNamespace PHP 메소드

getEntityNamespace() 공개 메소드

This method looks for the alias in all registered entity managers.
또한 보기: Configuration::getEntityNamespace
public getEntityNamespace ( string $alias ) : string
$alias string The alias
리턴 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);
    }