public static function getInstance()
    {
        $fileManager    = new FileManager();
        $serviceManager = ZendFramework2Environnement::getDependence($fileManager);
        $entityManager  = $serviceManager->get('doctrine.entitymanager.orm_default');

        if (($entityManager instanceof EntityManager) === false) {
            throw new \Exception(
                sprintf(
                    'Service manager return instanceof "%s" instead of "%s"',
                    is_object($entityManager) === true ? get_class($entityManager) : gettype($entityManager),
                    'Doctrine\ORM\EntityManager'
                )
            );
        }

        return new Doctrine2MetaDataDAO($entityManager);
    }
public static function getInstance()
    {
        $fileManager    = new FileManager();
        $serviceManager = ZendFramework2Environnement::getDependence($fileManager);
        $entityManager  = $serviceManager->get('doctrine.entitymanager.orm_default');

        if (($entityManager instanceof EntityManager) === false) {
            throw new \Exception(
                sprintf(
                    'Service manager return instanceof "%s" instead of "%s"',
                    is_object($entityManager) === true ? get_class($entityManager) : gettype($entityManager),
                    'Doctrine\ORM\EntityManager'
                )
            );
        }

        return new Doctrine2MetaDataDAO($entityManager);
    }
public static function getInstance ( ) { $ fileManager = new FileManager ( ) ; $ serviceManager = ZendFramework2Environnement :: getDependence ( $ fileManager ) ; $ entityManager = $ serviceManager -> get ( 'doctrine.entitymanager.orm_default' ) ; if ( ( $ entityManager instanceof EntityManager ) === false ) { throw new \ Exception ( sprintf ( 'Service manager return instanceof "%s" instead of "%s"' , is_object ( $ entityManager ) === true ? get_class ( $ entityManager ) : gettype ( $ entityManager ) , 'Doctrine\ORM\EntityManager' ) ) ; } return new Doctrine2MetaDataDAO ( $ entityManager ) ; }
Create Doctrine2MetaDataDAO instance
@return Doctrine2MetaDataDAO
Create Doctrine2MetaDataDAO instance