src/InfinityBase/EntityManager/EntityManagerAwareTrait.php
public function getEntityManager()
    {
        if (!isset($this->_entityManager)) {
            $this->_entityManager = $this->getServiceLocator()
                    ->get('Doctrine\ORM\EntityManager');
        }
        return $this->_entityManager;
    }
public function getEntityManager()
    {
        if (!isset($this->_entityManager)) {
            $this->_entityManager = $this->getServiceLocator()
                    ->get('Doctrine\ORM\EntityManager');
        }
        return $this->_entityManager;
    }
public function getEntityManager ( ) { if ( ! isset ( $ this -> _entityManager ) ) { $ this -> _entityManager = $ this -> getServiceLocator ( ) -> get ( 'Doctrine\ORM\EntityManager' ) ; } return $ this -> _entityManager ; }
Get entity manager

@return EntityManager
Get entity manager