Action_Helper_Em::getEntityManager PHP Метод

getEntityManager() публичный Метод

Get entity manager
public getEntityManager ( ) : EntityManager
Результат Doctrine\ORM\EntityManager
    public function getEntityManager()
    {
        if ($this->em === NULL) {
            $controller = $this->getActionController();
            $bootstrap = $controller->getInvokeArg('bootstrap');
            $doctrine = $bootstrap->getResource('doctrine');
            $this->setEntityManager($doctrine->getEntityManager());
        }
        return $this->em;
    }