コード例 #1
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\ORM\Configuration();
     $a->setEntityNamespaces(array());
     $a->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $a->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $a->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $a->setMetadataDriverImpl(new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain());
     $a->setProxyDir('/var/www/html/cupon/app/cache/prod/doctrine/orm/Proxies');
     $a->setProxyNamespace('Proxies');
     $a->setAutoGenerateProxyClasses(false);
     $a->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $a->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $a->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $a->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $a->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $a);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #2
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @param bool    $lazyLoad whether to try lazy-loading the service with a proxy
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService($lazyLoad = true)
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/vendor/gedmo/doctrine-extensions/lib/Gedmo/Translatable/Entity', 1 => $this->targetDirs[3] . '/vendor/gedmo/doctrine-extensions/lib/Gedmo/Translator/Entity', 2 => $this->targetDirs[3] . '/vendor/gedmo/doctrine-extensions/lib/Gedmo/Loggable/Entity', 3 => $this->targetDirs[3] . '/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity', 4 => $this->targetDirs[3] . '/vendor/7rin0/bigfoot-core-bundle/Bigfoot/Bundle/CoreBundle/Entity', 5 => $this->targetDirs[3] . '/vendor/7rin0/bigfoot-context-bundle/Bigfoot/Bundle/ContextBundle/Entity', 6 => $this->targetDirs[3] . '/vendor/7rin0/bigfoot-navigation-bundle/Bigfoot/Bundle/NavigationBundle/Entity', 7 => $this->targetDirs[3] . '/vendor/7rin0/bigfoot-user-bundle/Bigfoot/Bundle/UserBundle/Entity', 8 => $this->targetDirs[3] . '/vendor/7rin0/bigfoot-content-bundle/Bigfoot/Bundle/ContentBundle/Entity', 9 => $this->targetDirs[3] . '/vendor/7rin0/bigfoot-media-bundle/Bigfoot/Bundle/MediaBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Gedmo\\Translatable\\Entity');
     $c->addDriver($b, 'Gedmo\\Translator\\Entity');
     $c->addDriver($b, 'Gedmo\\Loggable\\Entity');
     $c->addDriver($b, 'Gedmo\\Tree\\Entity');
     $c->addDriver($b, 'Bigfoot\\Bundle\\CoreBundle\\Entity');
     $c->addDriver($b, 'Bigfoot\\Bundle\\ContextBundle\\Entity');
     $c->addDriver($b, 'Bigfoot\\Bundle\\NavigationBundle\\Entity');
     $c->addDriver($b, 'Bigfoot\\Bundle\\UserBundle\\Entity');
     $c->addDriver($b, 'Bigfoot\\Bundle\\ContentBundle\\Entity');
     $c->addDriver($b, 'Bigfoot\\Bundle\\MediaBundle\\Entity');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('GedmoTranslatable' => 'Gedmo\\Translatable\\Entity', 'GedmoTranslator' => 'Gedmo\\Translator\\Entity', 'GedmoLoggable' => 'Gedmo\\Loggable\\Entity', 'GedmoTree' => 'Gedmo\\Tree\\Entity', 'BigfootCoreBundle' => 'Bigfoot\\Bundle\\CoreBundle\\Entity', 'BigfootContextBundle' => 'Bigfoot\\Bundle\\ContextBundle\\Entity', 'BigfootNavigationBundle' => 'Bigfoot\\Bundle\\NavigationBundle\\Entity', 'BigfootUserBundle' => 'Bigfoot\\Bundle\\UserBundle\\Entity', 'BigfootContentBundle' => 'Bigfoot\\Bundle\\ContentBundle\\Entity', 'BigfootMediaBundle' => 'Bigfoot\\Bundle\\MediaBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $d->addCustomStringFunction('regexp', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Doctrine\\Query\\MySQL\\Regexp');
     $d->addCustomStringFunction('substring_index', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Doctrine\\Query\\MySQL\\SubstringIndex');
     $d->addCustomStringFunction('greatest', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Doctrine\\Query\\MySQL\\Greatest');
     $d->addCustomNumericFunction('acos', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Acos');
     $d->addCustomNumericFunction('cos', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Cos');
     $d->addCustomNumericFunction('sin', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Sin');
     $d->addCustomNumericFunction('radians', 'Bigfoot\\Bundle\\CoreBundle\\ORM\\Radians');
     $d->addCustomNumericFunction('GEO_DISTANCE', 'Craue\\GeoBundle\\Doctrine\\Query\\Mysql\\GeoDistance');
     $d->addCustomNumericFunction('GEO_DISTANCE_BY_POSTAL_CODE', 'Craue\\GeoBundle\\Doctrine\\Query\\Mysql\\GeoDistanceByPostalCode');
     $d->addFilter('softdeleteable', 'Gedmo\\SoftDeleteable\\Filter\\SoftDeleteableFilter');
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #3
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity', 1 => $this->targetDirs[3] . '/src/Labs/AdminBundle/Entity', 2 => $this->targetDirs[3] . '/src/Labs/MembersBundle/Entity', 3 => $this->targetDirs[3] . '/src/Labs/VentesFlashBundle/Entity', 4 => $this->targetDirs[3] . '/src/Labs/CommandsBundle/Entity', 5 => $this->targetDirs[3] . '/src/Labs/CatalogueBundle/Entity', 6 => $this->targetDirs[3] . '/src/Labs/StockBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Gedmo\\Tree\\Entity');
     $c->addDriver($b, 'Labs\\AdminBundle\\Entity');
     $c->addDriver($b, 'Labs\\MembersBundle\\Entity');
     $c->addDriver($b, 'Labs\\VentesFlashBundle\\Entity');
     $c->addDriver($b, 'Labs\\CommandsBundle\\Entity');
     $c->addDriver($b, 'Labs\\CatalogueBundle\\Entity');
     $c->addDriver($b, 'Labs\\StockBundle\\Entity');
     $c->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('GedmoTree' => 'Gedmo\\Tree\\Entity', 'LabsAdminBundle' => 'Labs\\AdminBundle\\Entity', 'LabsMembersBundle' => 'Labs\\MembersBundle\\Entity', 'LabsVentesFlashBundle' => 'Labs\\VentesFlashBundle\\Entity', 'LabsCommandsBundle' => 'Labs\\CommandsBundle\\Entity', 'LabsCatalogueBundle' => 'Labs\\CatalogueBundle\\Entity', 'LabsStockBundle' => 'Labs\\StockBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #4
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver(array($this->targetDirs[3] . '/src/DsCorp/Equipo/EquipoBundle/Resources/config/doctrine' => 'DsCorp\\Equipo\\EquipoBundle\\Entity', $this->targetDirs[3] . '/src/DsCorp/Empresa/EmpresaBundle/Resources/config/doctrine' => 'DsCorp\\Empresa\\EmpresaBundle\\Entity', $this->targetDirs[3] . '/src/DsCorp/General/GeneralBundle/Resources/config/doctrine' => 'DsCorp\\General\\GeneralBundle\\Entity', $this->targetDirs[3] . '/src/DsCorp/Fabricante/FabricanteBundle/Resources/config/doctrine' => 'DsCorp\\Fabricante\\FabricanteBundle\\Entity', $this->targetDirs[3] . '/src/DsCorp/Cliente/ClienteBundle/Resources/config/doctrine' => 'DsCorp\\Cliente\\ClienteBundle\\Entity', $this->targetDirs[3] . '/src/DsCorp/Personal/PersonalBundle/Resources/config/doctrine' => 'DsCorp\\Personal\\PersonalBundle\\Entity'));
     $a->setGlobalBasename('mapping');
     $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $b->addDriver($a, 'DsCorp\\Equipo\\EquipoBundle\\Entity');
     $b->addDriver($a, 'DsCorp\\Empresa\\EmpresaBundle\\Entity');
     $b->addDriver($a, 'DsCorp\\General\\GeneralBundle\\Entity');
     $b->addDriver($a, 'DsCorp\\Fabricante\\FabricanteBundle\\Entity');
     $b->addDriver($a, 'DsCorp\\Cliente\\ClienteBundle\\Entity');
     $b->addDriver($a, 'DsCorp\\Personal\\PersonalBundle\\Entity');
     $c = new \Doctrine\ORM\Configuration();
     $c->setEntityNamespaces(array('EquipoBundle' => 'DsCorp\\Equipo\\EquipoBundle\\Entity', 'EmpresaBundle' => 'DsCorp\\Empresa\\EmpresaBundle\\Entity', 'GeneralBundle' => 'DsCorp\\General\\GeneralBundle\\Entity', 'FabricanteBundle' => 'DsCorp\\Fabricante\\FabricanteBundle\\Entity', 'ClienteBundle' => 'DsCorp\\Cliente\\ClienteBundle\\Entity', 'PersonalBundle' => 'DsCorp\\Personal\\PersonalBundle\\Entity'));
     $c->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $c->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $c->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $c->setMetadataDriverImpl($b);
     $c->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $c->setProxyNamespace('Proxies');
     $c->setAutoGenerateProxyClasses(true);
     $c->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $c->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $c->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $c->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $c->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $c);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #5
0
    /**
     * Gets the 'doctrine.orm.default_entity_manager' service.
     *
     * This service is shared.
     * This method always returns the same instance of the service.
     *
     * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
     */
    protected function getDoctrine_Orm_DefaultEntityManagerService()
    {
        $a = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array(($this->targetDirs[3].'/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/doctrine') => 'FOS\\UserBundle\\Entity'));
        $a->setGlobalBasename('mapping');

        $b = new \Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver(array(($this->targetDirs[3].'/src/SeekerPlus/UserBundle/Resources/config/doctrine') => 'SeekerPlus\\UserBundle\\Entity', ($this->targetDirs[3].'/src/SeekerPlus/AdsmanagerBundle/Resources/config/doctrine') => 'SeekerPlus\\AdsmanagerBundle\\Entity', ($this->targetDirs[3].'/src/SeekerPlus/BannerBundle/Resources/config/doctrine') => 'SeekerPlus\\BannerBundle\\Entity'));
        $b->setGlobalBasename('mapping');

        $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
        $c->addDriver($a, 'FOS\\UserBundle\\Entity');
        $c->addDriver($b, 'SeekerPlus\\UserBundle\\Entity');
        $c->addDriver($b, 'SeekerPlus\\AdsmanagerBundle\\Entity');
        $c->addDriver($b, 'SeekerPlus\\BannerBundle\\Entity');

        $d = new \Doctrine\ORM\Configuration();
        $d->setEntityNamespaces(array('FOSUserBundle' => 'FOS\\UserBundle\\Entity', 'UserBundle' => 'SeekerPlus\\UserBundle\\Entity', 'AdsmanagerBundle' => 'SeekerPlus\\AdsmanagerBundle\\Entity', 'BannerBundle' => 'SeekerPlus\\BannerBundle\\Entity'));
        $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
        $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
        $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
        $d->setMetadataDriverImpl($c);
        $d->setProxyDir((__DIR__.'/doctrine/orm/Proxies'));
        $d->setProxyNamespace('Proxies');
        $d->setAutoGenerateProxyClasses(true);
        $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
        $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
        $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
        $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
        $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
        $d->addCustomNumericFunction('acos', 'Swis\\Bundle\\DatabaseExtraBundle\\DQL\\Acos');
        $d->addCustomNumericFunction('cos', 'Swis\\Bundle\\DatabaseExtraBundle\\DQL\\Cos');
        $d->addCustomNumericFunction('radians', 'Swis\\Bundle\\DatabaseExtraBundle\\DQL\\Radians');
        $d->addCustomNumericFunction('sin', 'Swis\\Bundle\\DatabaseExtraBundle\\DQL\\Sin');
        $d->addCustomNumericFunction('round', 'Swis\\Bundle\\DatabaseExtraBundle\\DQL\\Round');

        $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);

        $this->get('doctrine.orm.default_manager_configurator')->configure($instance);

        return $instance;
    }
コード例 #6
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\ORM\Cache\Logging\CacheLoggerChain();
     $a->setLogger('statistics', new \Doctrine\ORM\Cache\Logging\StatisticsCacheLogger());
     $b = new \Doctrine\ORM\Cache\CacheConfiguration();
     $b->setCacheLogger($a);
     $b->setCacheFactory(new \Doctrine\ORM\Cache\DefaultCacheFactory($this->get('doctrine.orm.default_second_level_cache.regions_configuration'), $this->get('doctrine_cache.providers.doctrine.orm.default_second_level_cache.region_cache_driver')));
     $b->setRegionsConfiguration(new \Doctrine\ORM\Cache\RegionsConfiguration());
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => $this->targetDirs[3] . '\\src\\Laiso\\ArmBundle\\Entity')), 'Laiso\\ArmBundle\\Entity');
     $c->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '\\vendor\\friendsofsymfony\\user-bundle\\Resources\\config\\doctrine-mapping' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('LaisoArmBundle' => 'Laiso\\ArmBundle\\Entity'));
     $d->setSecondLevelCacheEnabled(true);
     $d->setSecondLevelCacheConfiguration($b);
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #7
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $a->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => $this->targetDirs[3] . '/src/AppBundle/Entity')), 'AppBundle\\Entity');
     $b = new \Doctrine\ORM\Configuration();
     $b->setEntityNamespaces(array('AppBundle' => 'AppBundle\\Entity'));
     $b->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $b->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $b->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $b->setMetadataDriverImpl($a);
     $b->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $b->setProxyNamespace('Proxies');
     $b->setAutoGenerateProxyClasses(true);
     $b->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $b->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $b->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $b->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $b->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $b);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #8
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '\\src\\keny\\LeboncoinBundle\\Entity', 1 => $this->targetDirs[3] . '\\src\\keny\\UserBundle\\Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'keny\\LeboncoinBundle\\Entity');
     $c->addDriver($b, 'keny\\UserBundle\\Entity');
     $c->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '\\vendor\\friendsofsymfony\\user-bundle\\Resources\\config\\doctrine-mapping' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('kenyLeboncoinBundle' => 'keny\\LeboncoinBundle\\Entity', 'kenyUserBundle' => 'keny\\UserBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #9
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/src/PointWeb/AppBundle/Entity', 1 => $this->targetDirs[3] . '/src/PointWeb/AdminBundle/Entity', 2 => $this->targetDirs[3] . '/src/PointWeb/UserBundle/Entity', 3 => $this->targetDirs[3] . '/src/PointWeb/NewsBundle/Entity', 4 => $this->targetDirs[3] . '/src/PointWeb/PartnerBundle/Entity', 5 => $this->targetDirs[3] . '/src/PointWeb/GuestBookBundle/Entity', 6 => $this->targetDirs[3] . '/src/PointWeb/ProductBundle/Entity', 7 => $this->targetDirs[3] . '/src/PointWeb/CalendarBundle/Entity', 8 => $this->targetDirs[3] . '/src/PointWeb/ReferencingBundle/Entity', 9 => $this->targetDirs[3] . '/src/PointWeb/PageBundle/Entity', 10 => $this->targetDirs[3] . '/src/PointWeb/NewsletterBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'PointWeb\\AppBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\AdminBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\UserBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\NewsBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\PartnerBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\GuestBookBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\ProductBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\CalendarBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\ReferencingBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\PageBundle\\Entity');
     $c->addDriver($b, 'PointWeb\\NewsletterBundle\\Entity');
     $c->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('PointWebAppBundle' => 'PointWeb\\AppBundle\\Entity', 'PointWebAdminBundle' => 'PointWeb\\AdminBundle\\Entity', 'PointWebUserBundle' => 'PointWeb\\UserBundle\\Entity', 'PointWebNewsBundle' => 'PointWeb\\NewsBundle\\Entity', 'PointWebPartnerBundle' => 'PointWeb\\PartnerBundle\\Entity', 'PointWebGuestBookBundle' => 'PointWeb\\GuestBookBundle\\Entity', 'PointWebProductBundle' => 'PointWeb\\ProductBundle\\Entity', 'PointWebCalendarBundle' => 'PointWeb\\CalendarBundle\\Entity', 'PointWebReferencingBundle' => 'PointWeb\\ReferencingBundle\\Entity', 'PointWebPageBundle' => 'PointWeb\\PageBundle\\Entity', 'PointWebNewsletterBundle' => 'PointWeb\\NewsletterBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #10
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $a->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => $this->targetDirs[3] . '/src/ServiceBundle/Entity')), 'ServiceBundle\\Entity');
     $b = new \Doctrine\ORM\Configuration();
     $b->setEntityNamespaces(array('ServiceBundle' => 'ServiceBundle\\Entity'));
     $b->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $b->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $b->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $b->setMetadataDriverImpl($a);
     $b->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $b->setProxyNamespace('Proxies');
     $b->setAutoGenerateProxyClasses(true);
     $b->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $b->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $b->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $b->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $b->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $b->addCustomStringFunction('charlength', 'DoctrineExtensions\\Query\\Mysql\\CharLength');
     $b->addCustomStringFunction('concat_ws', 'DoctrineExtensions\\Query\\Mysql\\ConcatWs');
     $b->addCustomStringFunction('countif', 'DoctrineExtensions\\Query\\Mysql\\CountIf');
     $b->addCustomStringFunction('degrees', 'DoctrineExtensions\\Query\\Mysql\\Degrees');
     $b->addCustomStringFunction('field', 'DoctrineExtensions\\Query\\Mysql\\Field');
     $b->addCustomStringFunction('findinset', 'DoctrineExtensions\\Query\\Mysql\\FindInSet');
     $b->addCustomStringFunction('groupconcat', 'DoctrineExtensions\\Query\\Mysql\\GroupConcat');
     $b->addCustomStringFunction('ifelse', 'DoctrineExtensions\\Query\\Mysql\\IfElse');
     $b->addCustomStringFunction('ifnull', 'DoctrineExtensions\\Query\\Mysql\\IfNull');
     $b->addCustomStringFunction('matchagainst', 'DoctrineExtensions\\Query\\Mysql\\MatchAgainst');
     $b->addCustomStringFunction('md5', 'DoctrineExtensions\\Query\\Mysql\\Md5');
     $b->addCustomStringFunction('month', 'DoctrineExtensions\\Query\\Mysql\\Month');
     $b->addCustomStringFunction('monthname', 'DoctrineExtensions\\Query\\Mysql\\MonthName');
     $b->addCustomStringFunction('nullif', 'DoctrineExtensions\\Query\\Mysql\\NullIf');
     $b->addCustomStringFunction('radians', 'DoctrineExtensions\\Query\\Mysql\\Radians');
     $b->addCustomStringFunction('sha1', 'DoctrineExtensions\\Query\\Mysql\\Sha1');
     $b->addCustomStringFunction('sha2', 'DoctrineExtensions\\Query\\Mysql\\Sha2');
     $b->addCustomNumericFunction('acos', 'DoctrineExtensions\\Query\\Mysql\\Acos');
     $b->addCustomNumericFunction('asin', 'DoctrineExtensions\\Query\\Mysql\\Asin');
     $b->addCustomNumericFunction('atan2', 'DoctrineExtensions\\Query\\Mysql\\Atan2');
     $b->addCustomNumericFunction('atan', 'DoctrineExtensions\\Query\\Mysql\\Atan');
     $b->addCustomNumericFunction('cos', 'DoctrineExtensions\\Query\\Mysql\\Cos');
     $b->addCustomNumericFunction('cot', 'DoctrineExtensions\\Query\\Mysql\\Cot');
     $b->addCustomNumericFunction('round', 'DoctrineExtensions\\Query\\Mysql\\Round');
     $b->addCustomNumericFunction('sin', 'DoctrineExtensions\\Query\\Mysql\\Sin');
     $b->addCustomNumericFunction('tan', 'DoctrineExtensions\\Query\\Mysql\\Tan');
     $b->addCustomNumericFunction('time_diff', 'DoctrineExtensions\\Query\\Mysql\\TimeDiff');
     $b->addCustomDatetimeFunction('date', 'DoctrineExtensions\\Query\\Mysql\\Date');
     $b->addCustomDatetimeFunction('dateadd', 'DoctrineExtensions\\Query\\Mysql\\DateAdd');
     $b->addCustomDatetimeFunction('datediff', 'DoctrineExtensions\\Query\\Mysql\\DateDiff');
     $b->addCustomDatetimeFunction('date_format', 'DoctrineExtensions\\Query\\Mysql\\DateFormat');
     $b->addCustomDatetimeFunction('day', 'DoctrineExtensions\\Query\\Mysql\\Day');
     $b->addCustomDatetimeFunction('dayname', 'DoctrineExtensions\\Query\\Mysql\\DayName');
     $b->addCustomDatetimeFunction('strtodate', 'DoctrineExtensions\\Query\\Mysql\\StrToDate');
     $b->addCustomDatetimeFunction('timestampdiff', 'DoctrineExtensions\\Query\\Mysql\\TimestampDiff');
     $b->addCustomDatetimeFunction('week', 'DoctrineExtensions\\Query\\Mysql\\Week');
     $b->addCustomDatetimeFunction('year', 'DoctrineExtensions\\Query\\Mysql\\Year');
     $b->addCustomDatetimeFunction('month', 'DoctrineExtensions\\Query\\Mysql\\Month');
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $b);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #11
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '\\vendor\\gedmo\\doctrine-extensions\\lib\\Gedmo\\Translatable\\Entity', 1 => $this->targetDirs[3] . '\\vendor\\gedmo\\doctrine-extensions\\lib\\Gedmo\\Translator\\Entity', 2 => $this->targetDirs[3] . '\\vendor\\gedmo\\doctrine-extensions\\lib\\Gedmo\\Loggable\\Entity', 3 => $this->targetDirs[3] . '\\vendor\\gedmo\\doctrine-extensions\\lib\\Gedmo\\Tree\\Entity', 4 => $this->targetDirs[3] . '\\src\\Site\\BackOfficeBundle\\Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Gedmo\\Translatable\\Entity');
     $c->addDriver($b, 'Gedmo\\Translator\\Entity');
     $c->addDriver($b, 'Gedmo\\Loggable\\Entity');
     $c->addDriver($b, 'Gedmo\\Tree\\Entity');
     $c->addDriver($b, 'Site\\BackOfficeBundle\\Entity');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('GedmoTranslatable' => 'Gedmo\\Translatable\\Entity', 'GedmoTranslator' => 'Gedmo\\Translator\\Entity', 'GedmoLoggable' => 'Gedmo\\Loggable\\Entity', 'GedmoTree' => 'Gedmo\\Tree\\Entity', 'SiteBackOfficeBundle' => 'Site\\BackOfficeBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(false);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #12
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/vendor/gedmo/doctrine-extensions/lib/Gedmo/Tree/Entity', 1 => $this->targetDirs[3] . '/src/Proshut/UserBundle/Entity', 2 => $this->targetDirs[3] . '/src/Proshut/LanguageBundle/Entity', 3 => $this->targetDirs[3] . '/src/Proshut/AttachmentBundle/Entity', 4 => $this->targetDirs[3] . '/src/Proshut/ArticleBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Gedmo\\Tree\\Entity');
     $c->addDriver($b, 'Proshut\\UserBundle\\Entity');
     $c->addDriver($b, 'Proshut\\LanguageBundle\\Entity');
     $c->addDriver($b, 'Proshut\\AttachmentBundle\\Entity');
     $c->addDriver($b, 'Proshut\\ArticleBundle\\Entity');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('Gedmo' => 'Gedmo\\Tree\\Entity', 'ProshutUserBundle' => 'Proshut\\UserBundle\\Entity', 'ProshutLanguageBundle' => 'Proshut\\LanguageBundle\\Entity', 'ProshutAttachmentBundle' => 'Proshut\\AttachmentBundle\\Entity', 'ProshutArticleBundle' => 'Proshut\\ArticleBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $d->addCustomDatetimeFunction('date', 'Proshut\\AttachmentBundle\\DQL\\DateFunction');
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #13
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver(array('/Users/marcu/Projects/Chill/vendor/chill-project/activity/vendor/chill-project/main/Resources/config/doctrine' => 'Chill\\MainBundle\\Entity', '/Users/marcu/Projects/Chill/vendor/chill-project/activity/vendor/chill-project/custom-fields/Resources/config/doctrine' => 'Chill\\CustomFieldsBundle\\Entity', '/Users/marcu/Projects/Chill/vendor/chill-project/activity/vendor/chill-project/person/Resources/config/doctrine' => 'Chill\\PersonBundle\\Entity', '/Users/marcu/Projects/Chill/vendor/chill-project/activity/Resources/config/doctrine' => 'Chill\\ActivityBundle\\Entity'));
     $a->setGlobalBasename('mapping');
     $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $b->addDriver($a, 'Chill\\MainBundle\\Entity');
     $b->addDriver($a, 'Chill\\CustomFieldsBundle\\Entity');
     $b->addDriver($a, 'Chill\\PersonBundle\\Entity');
     $b->addDriver($a, 'Chill\\ActivityBundle\\Entity');
     $c = new \Doctrine\ORM\Configuration();
     $c->setEntityNamespaces(array('ChillMainBundle' => 'Chill\\MainBundle\\Entity', 'ChillCustomFieldsBundle' => 'Chill\\CustomFieldsBundle\\Entity', 'ChillPersonBundle' => 'Chill\\PersonBundle\\Entity', 'ChillActivityBundle' => 'Chill\\ActivityBundle\\Entity'));
     $c->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $c->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $c->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $c->setMetadataDriverImpl($b);
     $c->setProxyDir('/Users/marcu/Projects/Chill/vendor/chill-project/activity/Tests/Fixtures/App/app/cache/dev/doctrine/orm/Proxies');
     $c->setProxyNamespace('Proxies');
     $c->setAutoGenerateProxyClasses(true);
     $c->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $c->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $c->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $c->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $c->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $c->addCustomStringFunction('unaccent', 'Chill\\MainBundle\\Doctrine\\DQL\\Unaccent');
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $c);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #14
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => '/var/www/html/cupon/src/Cupon/OfertaBundle/Entity', 1 => '/var/www/html/cupon/src/Cupon/CiudadBundle/Entity', 2 => '/var/www/html/cupon/src/Cupon/TiendaBundle/Entity', 3 => '/var/www/html/cupon/src/Cupon/UsuarioBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Cupon\\OfertaBundle\\Entity');
     $c->addDriver($b, 'Cupon\\CiudadBundle\\Entity');
     $c->addDriver($b, 'Cupon\\TiendaBundle\\Entity');
     $c->addDriver($b, 'Cupon\\UsuarioBundle\\Entity');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('OfertaBundle' => 'Cupon\\OfertaBundle\\Entity', 'CiudadBundle' => 'Cupon\\CiudadBundle\\Entity', 'TiendaBundle' => 'Cupon\\TiendaBundle\\Entity', 'UsuarioBundle' => 'Cupon\\UsuarioBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir('/var/www/html/cupon/app/cache/dev/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #15
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array($this->targetDirs[3] . '\\src\\Vlreleases\\UserBundle\\Resources\\config\\doctrine' => 'Vlreleases\\UserBundle\\Entity'));
     $a->setGlobalBasename('mapping');
     $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $b->addDriver($a, 'Vlreleases\\UserBundle\\Entity');
     $c = new \Doctrine\ORM\Configuration();
     $c->setEntityNamespaces(array('VlreleasesUserBundle' => 'Vlreleases\\UserBundle\\Entity'));
     $c->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $c->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $c->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $c->setMetadataDriverImpl($b);
     $c->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $c->setProxyNamespace('Proxies');
     $c->setAutoGenerateProxyClasses(true);
     $c->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $c->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $c->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $c->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $c->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $c);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #16
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $a->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/bas/vhosts/symfony/src/Hangman/Bundle/ApiBundle/Entity')), 'Hangman\\Bundle\\ApiBundle\\Entity');
     $b = new \Doctrine\ORM\Configuration();
     $b->setEntityNamespaces(array('HangmanApiBundle' => 'Hangman\\Bundle\\ApiBundle\\Entity'));
     $b->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $b->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $b->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $b->setMetadataDriverImpl($a);
     $b->setProxyDir('/home/bas/vhosts/symfony/app/cache/dev/doctrine/orm/Proxies');
     $b->setProxyNamespace('Proxies');
     $b->setAutoGenerateProxyClasses(true);
     $b->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $b->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $b->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $b->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $b->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $b);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #17
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \EntityManager564cc1aa2299a_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager A EntityManager564cc1aa2299a_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     require_once __DIR__ . '/jms_diextra/doctrine/EntityManager_564cc1aa2299a.php';
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/src/Test/BlogBundle/Entity', 1 => $this->targetDirs[3] . '/src/Test/UserBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Test\\BlogBundle\\Entity');
     $c->addDriver($b, 'Test\\UserBundle\\Entity');
     $c->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('TestBlogBundle' => 'Test\\BlogBundle\\Entity', 'TestUserBundle' => 'Test\\UserBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $e = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($e);
     return $this->services['doctrine.orm.default_entity_manager'] = new \EntityManager564cc1aa2299a_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager($e, $this);
 }
コード例 #18
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     require_once __DIR__ . '/jms_diextra/doctrine/EntityManager_566c9a5e8dfd5.php';
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/src/AdrianG/RegisterBundle/Entity', 1 => $this->targetDirs[3] . '/src/multimediaBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'AdrianG\\RegisterBundle\\Entity');
     $c->addDriver($b, 'multimediaBundle\\Entity');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('AdrianGRegisterBundle' => 'AdrianG\\RegisterBundle\\Entity', 'multimediaBundle' => 'multimediaBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(false);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $e = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($e);
     return $this->services['doctrine.orm.default_entity_manager'] = new \EntityManager566c9a5e8dfd5_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager($e, $this);
 }
コード例 #19
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array($this->targetDirs[3] . '/src/Application/Sonata/UserBundle/Resources/config/doctrine' => 'Application\\Sonata\\UserBundle\\Entity', $this->targetDirs[3] . '/vendor/sonata-project/user-bundle/Resources/config/doctrine' => 'Sonata\\UserBundle\\Entity', $this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/doctrine' => 'FOS\\UserBundle\\Entity'));
     $a->setGlobalBasename('mapping');
     $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $b->addDriver($a, 'Application\\Sonata\\UserBundle\\Entity');
     $b->addDriver($a, 'Sonata\\UserBundle\\Entity');
     $b->addDriver($a, 'FOS\\UserBundle\\Entity');
     $c = new \Doctrine\ORM\Configuration();
     $c->setEntityNamespaces(array('ApplicationSonataUserBundle' => 'Application\\Sonata\\UserBundle\\Entity', 'SonataUserBundle' => 'Sonata\\UserBundle\\Entity', 'FOSUserBundle' => 'FOS\\UserBundle\\Entity'));
     $c->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $c->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $c->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $c->setMetadataDriverImpl($b);
     $c->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $c->setProxyNamespace('Proxies');
     $c->setAutoGenerateProxyClasses(false);
     $c->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $c->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $c->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $c->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $c->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $c);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #20
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '\\src\\AppBundle\\Entity', 1 => $this->targetDirs[3] . '\\src\\Acme\\TestBundle\\Entity', 2 => $this->targetDirs[3] . '\\src\\Acme\\MySiteBundle\\Entity'));
     $c = new \Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver(array($this->targetDirs[3] . '\\src\\Acme\\DemoBundle\\Resources\\config\\doctrine' => 'Acme\\DemoBundle\\Entity'));
     $c->setGlobalBasename('mapping');
     $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $d->addDriver($b, 'AppBundle\\Entity');
     $d->addDriver($b, 'Acme\\TestBundle\\Entity');
     $d->addDriver($b, 'Acme\\MySiteBundle\\Entity');
     $d->addDriver($c, 'Acme\\DemoBundle\\Entity');
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '\\src\\FOSUserBundle\\Resources\\config\\doctrine\\model' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('AppBundle' => 'AppBundle\\Entity', 'AcmeDemoBundle' => 'Acme\\DemoBundle\\Entity', 'AcmeTestBundle' => 'Acme\\TestBundle\\Entity', 'AcmeMySiteBundle' => 'Acme\\MySiteBundle\\Entity'));
     $e->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $e->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $e->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $e->setProxyNamespace('Proxies');
     $e->setAutoGenerateProxyClasses(true);
     $e->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $e->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $e->setNamingStrategy(new \Doctrine\ORM\Mapping\UnderscoreNamingStrategy());
     $e->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $e->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $e);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #21
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/src/Cestom/ArticleBundle/Entity', 1 => $this->targetDirs[3] . '/src/Cestom/UserBundle/Entity'));
     $c = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array($this->targetDirs[3] . '/src/Cestom/StoreBundle/Resources/config/doctrine' => 'Cestom\\StoreBundle\\Entity'));
     $c->setGlobalBasename('mapping');
     $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $d->addDriver($b, 'Cestom\\ArticleBundle\\Entity');
     $d->addDriver($b, 'Cestom\\UserBundle\\Entity');
     $d->addDriver($c, 'Cestom\\StoreBundle\\Entity');
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/Resources/config/doctrine-mapping' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('CestomArticleBundle' => 'Cestom\\ArticleBundle\\Entity', 'CestomUserBundle' => 'Cestom\\UserBundle\\Entity', 'CestomStoreBundle' => 'Cestom\\StoreBundle\\Entity'));
     $e->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $e->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $e->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $e->setProxyNamespace('Proxies');
     $e->setAutoGenerateProxyClasses(false);
     $e->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $e->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $e->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $e->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $e->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $e);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
コード例 #22
0
 /**
  * Gets the 'doctrine.orm.default_entity_manager' service.
  *
  * This service is shared.
  * This method always returns the same instance of the service.
  *
  * @return \Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  */
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/src/Chaire/AccueilBundle/Entity', 1 => $this->targetDirs[3] . '/src/Chaire/EventBundle/Entity', 2 => $this->targetDirs[3] . '/src/Chaire/AdminBundle/Entity', 3 => $this->targetDirs[3] . '/src/Chaire/FormationBundle/Entity', 4 => $this->targetDirs[3] . '/src/Chaire/TeamBundle/Entity', 5 => $this->targetDirs[3] . '/src/GenerateurBundle/Entity'));
     $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain();
     $c->addDriver($b, 'Chaire\\AccueilBundle\\Entity');
     $c->addDriver($b, 'Chaire\\EventBundle\\Entity');
     $c->addDriver($b, 'Chaire\\AdminBundle\\Entity');
     $c->addDriver($b, 'Chaire\\FormationBundle\\Entity');
     $c->addDriver($b, 'Chaire\\TeamBundle\\Entity');
     $c->addDriver($b, 'GenerateurBundle\\Entity');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array('ChaireAccueilBundle' => 'Chaire\\AccueilBundle\\Entity', 'ChaireEventBundle' => 'Chaire\\EventBundle\\Entity', 'ChaireAdminBundle' => 'Chaire\\AdminBundle\\Entity', 'ChaireFormationBundle' => 'Chaire\\FormationBundle\\Entity', 'ChaireTeamBundle' => 'Chaire\\TeamBundle\\Entity', 'GenerateurBundle' => 'GenerateurBundle\\Entity'));
     $d->setMetadataCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_metadata_cache'));
     $d->setQueryCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_query_cache'));
     $d->setResultCacheImpl($this->get('doctrine_cache.providers.doctrine.orm.default_result_cache'));
     $d->setMetadataDriverImpl($c);
     $d->setProxyDir(__DIR__ . '/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(true);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $d->setQuoteStrategy(new \Doctrine\ORM\Mapping\DefaultQuoteStrategy());
     $d->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver'));
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $d);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }