Jsor\Doctrine\PostGIS\AbstractFunctionalTestCase::_getEntityManager PHP Method

_getEntityManager() protected method

protected _getEntityManager ( Doctrine\ORM\Configuration $config = null )
$config Doctrine\ORM\Configuration
    protected function _getEntityManager(Configuration $config = null)
    {
        if (null !== $this->_em) {
            return $this->_em;
        }
        $connection = $this->_getConnection();
        if (!$config) {
            $config = $connection->getConfiguration();
        }
        $this->_setupConfiguration($config);
        $em = EntityManager::create($connection, $config);
        return $this->_em = $em;
    }