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(false); $b->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory'); $b->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository'); $b->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy()); $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; }
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\\Xiehe\\WebBundle\\Entity')), 'Xiehe\\WebBundle\\Entity'); $a->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'); $b = new \Doctrine\ORM\Configuration(); $b->setEntityNamespaces(array('XieheWebBundle' => 'Xiehe\\WebBundle\\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(false); $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; }
protected function getDoctrine_Orm_DefaultEntityManagerService() { $a = $this->get('annotation_reader'); $b = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => dirname(dirname(dirname(__DIR__))) . '\\src\\AppBundle\\Entity', 1 => dirname(dirname(dirname(__DIR__))) . '\\src\\Acme\\Bundle\\BlogBundle\\Entity')); $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $c->addDriver($b, 'AppBundle\\Entity'); $c->addDriver($b, 'Acme\\Bundle\\BlogBundle\\Entity'); $d = new \Doctrine\ORM\Configuration(); $d->setEntityNamespaces(array('AppBundle' => 'AppBundle\\Entity', 'AcmeBlogBundle' => 'Acme\\Bundle\\BlogBundle\\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('E:/xampp/htdocs/symfony101/app/cache/prod/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->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; }
/** * 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/Air/BlogBundle/Entity', 1 => $this->targetDirs[3] . '/src/Common/UserBundle/Entity', 2 => $this->targetDirs[3] . '/vendor/doctrine/doctrine-fixtures-bundle/Doctrine/Bundle/FixturesBundle/Entity')); $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $c->addDriver($b, 'Air\\BlogBundle\\Entity'); $c->addDriver($b, 'Common\\UserBundle\\Entity'); $c->addDriver($b, 'Doctrine\\Bundle\\FixturesBundle\\Entity'); $d = new \Doctrine\ORM\Configuration(); $d->setEntityNamespaces(array('AirBlogBundle' => 'Air\\BlogBundle\\Entity', 'CommonUserBundle' => 'Common\\UserBundle\\Entity', 'DoctrineFixturesBundle' => 'Doctrine\\Bundle\\FixturesBundle\\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->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; }
/** * 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; }
/** * 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; }
/** * 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/LamaDelRay/PlatformBundle/Entity', 1 => $this->targetDirs[3] . '/src/LamaDelRay/UserBundle/Entity')); $c = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array($this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/doctrine' => 'FOS\\UserBundle\\Entity', $this->targetDirs[3] . '/vendor/sonata-project/user-bundle/Resources/config/doctrine' => 'Sonata\\UserBundle\\Entity', $this->targetDirs[3] . '/src/Application/Sonata/UserBundle/Resources/config/doctrine' => 'Application\\Sonata\\UserBundle\\Entity')); $c->setGlobalBasename('mapping'); $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $d->addDriver($b, 'LamaDelRay\\PlatformBundle\\Entity'); $d->addDriver($b, 'LamaDelRay\\UserBundle\\Entity'); $d->addDriver($c, 'FOS\\UserBundle\\Entity'); $d->addDriver($c, 'Sonata\\UserBundle\\Entity'); $d->addDriver($c, 'Application\\Sonata\\UserBundle\\Entity'); $e = new \Doctrine\ORM\Configuration(); $e->setEntityNamespaces(array('LamaDelRayPlatformBundle' => 'LamaDelRay\\PlatformBundle\\Entity', 'FOSUserBundle' => 'FOS\\UserBundle\\Entity', 'UserBundle' => 'LamaDelRay\\UserBundle\\Entity', 'SonataUserBundle' => 'Sonata\\UserBundle\\Entity', 'ApplicationSonataUserBundle' => 'Application\\Sonata\\UserBundle\\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\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; }
/** * 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; }
/** * 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(dirname(dirname(dirname(__DIR__))) . '\\src\\Login\\LoginBundle\\Resources\\config\\doctrine' => 'Login\\LoginBundle\\Entity', dirname(dirname(dirname(__DIR__))) . '\\src\\ContactsContactsBundle\\Resources\\config\\doctrine' => 'ContactsContactsBundle\\Entity', dirname(dirname(dirname(__DIR__))) . '\\src\\SettingsBundle\\Resources\\config\\doctrine' => 'SettingsBundle\\Entity', dirname(dirname(dirname(__DIR__))) . '\\src\\OpportunityBundle\\Resources\\config\\doctrine' => 'OpportunityBundle\\Entity', dirname(dirname(dirname(__DIR__))) . '\\src\\NotesBundle\\Resources\\config\\doctrine' => 'NotesBundle\\Entity', dirname(dirname(dirname(__DIR__))) . '\\src\\TaskBundle\\Resources\\config\\doctrine' => 'TaskBundle\\Entity')); $a->setGlobalBasename('mapping'); $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $b->addDriver($a, 'Login\\LoginBundle\\Entity'); $b->addDriver($a, 'ContactsContactsBundle\\Entity'); $b->addDriver($a, 'SettingsBundle\\Entity'); $b->addDriver($a, 'OpportunityBundle\\Entity'); $b->addDriver($a, 'NotesBundle\\Entity'); $b->addDriver($a, 'TaskBundle\\Entity'); $c = new \Doctrine\ORM\Configuration(); $c->setEntityNamespaces(array('LoginLoginBundle' => 'Login\\LoginBundle\\Entity', 'ContactsContactsBundle' => 'ContactsContactsBundle\\Entity', 'SettingsBundle' => 'SettingsBundle\\Entity', 'OpportunityBundle' => 'OpportunityBundle\\Entity', 'NotesBundle' => 'NotesBundle\\Entity', 'TaskBundle' => 'TaskBundle\\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('C:/wamp/www/BusinessPipeline/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->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; }
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); }
/** * 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\\Bufete\\MainBundle\\Entity', 1 => $this->targetDirs[3] . '\\src\\Bufete\\AplicacionBundle\\Entity')); $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $c->addDriver($b, 'Bufete\\MainBundle\\Entity'); $c->addDriver($b, 'Bufete\\AplicacionBundle\\Entity'); $d = new \Doctrine\ORM\Configuration(); $d->setEntityNamespaces(array('BufeteMainBundle' => 'Bufete\\MainBundle\\Entity', 'BufeteAplicacionBundle' => 'Bufete\\AplicacionBundle\\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->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; }
/** * Gets the 'doctrine_mongodb.odm.default_configuration' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Doctrine\ODM\MongoDB\Configuration A Doctrine\ODM\MongoDB\Configuration instance. */ protected function getDoctrineMongodb_Odm_DefaultConfigurationService() { $a = $this->get('annotation_reader'); $b = new \Doctrine\Common\Cache\ArrayCache(); $b->setNamespace('sf2mongodb_default_7bf2c5739740f682deedc09d0d3e7fcb32c5f04377022ebb01d66d08ca5a34e8'); $c = new \Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/src/MainBundle/Document', 1 => $this->targetDirs[3] . '/src/UsersBundle/Document', 2 => $this->targetDirs[3] . '/src/StoreBundle/Document')); $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $d->addDriver($c, 'MainBundle\\Document'); $d->addDriver($c, 'UsersBundle\\Document'); $d->addDriver($c, 'StoreBundle\\Document'); $d->addDriver(new \Doctrine\ODM\MongoDB\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'), '.mongodb.xml')), 'FOS\\UserBundle\\Model'); $e = new \Doctrine\Bundle\MongoDBBundle\Logger\Logger($this->get('monolog.logger.doctrine', ContainerInterface::NULL_ON_INVALID_REFERENCE)); $e->setBatchInsertThreshold(4); $this->services['doctrine_mongodb.odm.default_configuration'] = $instance = new \Doctrine\ODM\MongoDB\Configuration(); $instance->setDocumentNamespaces(array('MainBundle' => 'MainBundle\\Document', 'UsersBundle' => 'UsersBundle\\Document', 'StoreBundle' => 'StoreBundle\\Document')); $instance->setMetadataCacheImpl($b); $instance->setMetadataDriverImpl($d); $instance->setProxyDir(__DIR__ . '/doctrine/odm/mongodb/Proxies'); $instance->setProxyNamespace('MongoDBODMProxies'); $instance->setAutoGenerateProxyClasses(false); $instance->setHydratorDir(__DIR__ . '/doctrine/odm/mongodb/Hydrators'); $instance->setHydratorNamespace('Hydrators'); $instance->setAutoGenerateHydratorClasses(false); $instance->setDefaultDB('test_database'); $instance->setDefaultCommitOptions(array()); $instance->setRetryConnect(0); $instance->setRetryQuery(0); $instance->setLoggerCallable(array(0 => new \Doctrine\Bundle\MongoDBBundle\Logger\AggregateLogger(array(0 => $e, 1 => $this->get('doctrine_mongodb.odm.data_collector.pretty'))), 1 => 'logQuery')); return $instance; }
/** * 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; }
/** * 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; }
/** * 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/My/RecipesBundle/Entity')); $c = new \Doctrine\ORM\Mapping\Driver\SimplifiedYamlDriver(array($this->targetDirs[3] . '/src/Cambi/GestionBundle/Resources/config/doctrine' => 'Cambi\\GestionBundle\\Entity')); $c->setGlobalBasename('mapping'); $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $d->addDriver($b, 'AppBundle\\Entity'); $d->addDriver($b, 'My\\RecipesBundle\\Entity'); $d->addDriver($c, 'Cambi\\GestionBundle\\Entity'); $e = new \Doctrine\ORM\Configuration(); $e->setEntityNamespaces(array('AppBundle' => 'AppBundle\\Entity', 'MyRecipesBundle' => 'My\\RecipesBundle\\Entity', 'CambiGestionBundle' => 'Cambi\\GestionBundle\\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\DefaultNamingStrategy()); $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; }
/** * 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; }
/** * Gets the 'doctrine_mongodb.odm.default_configuration' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Doctrine\ODM\MongoDB\Configuration A Doctrine\ODM\MongoDB\Configuration instance. */ protected function getDoctrineMongodb_Odm_DefaultConfigurationService() { $a = new \Doctrine\Common\Cache\ArrayCache(); $a->setNamespace('sf2mongodb_default_f8e1861c29d51710d03fc757e3effb289ace6597b2362f1871b5952432e41cd1'); $b = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $b->addDriver(new \Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => $this->targetDirs[3] . '/src/Acme/PersonBundle/Document')), 'Acme\\PersonBundle\\Document'); $c = new \Doctrine\Bundle\MongoDBBundle\Logger\Logger($this->get('monolog.logger.doctrine', ContainerInterface::NULL_ON_INVALID_REFERENCE)); $c->setBatchInsertThreshold(4); $this->services['doctrine_mongodb.odm.default_configuration'] = $instance = new \Doctrine\ODM\MongoDB\Configuration(); $instance->setDocumentNamespaces(array('PersonBundle' => 'Acme\\PersonBundle\\Document')); $instance->setMetadataCacheImpl($a); $instance->setMetadataDriverImpl($b); $instance->setProxyDir(__DIR__ . '/doctrine/odm/mongodb/Proxies'); $instance->setProxyNamespace('MongoDBODMProxies'); $instance->setAutoGenerateProxyClasses(false); $instance->setHydratorDir(__DIR__ . '/doctrine/odm/mongodb/Hydrators'); $instance->setHydratorNamespace('Hydrators'); $instance->setAutoGenerateHydratorClasses(false); $instance->setDefaultDB('person'); $instance->setDefaultCommitOptions(array()); $instance->setRetryConnect(0); $instance->setRetryQuery(0); $instance->setDefaultRepositoryClassName('Doctrine\\ODM\\MongoDB\\DocumentRepository'); $instance->setLoggerCallable(array(0 => new \Doctrine\Bundle\MongoDBBundle\Logger\AggregateLogger(array(0 => $c, 1 => $this->get('doctrine_mongodb.odm.data_collector.pretty'))), 1 => 'logQuery')); return $instance; }
/** * 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; }
/** * 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; }
/** * 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 => dirname(dirname(dirname(__DIR__))) . '\\src\\Info\\cineBundle\\Entity')), 'Info\\cineBundle\\Entity'); $b = new \Doctrine\ORM\Configuration(); $b->setEntityNamespaces(array('cineBundle' => 'Info\\cineBundle\\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('C:/xampp/htdocs/Project-PHP/Cinemateka/finalProject/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->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; }
/** * 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\SimplifiedXmlDriver(array($this->targetDirs[3] . '\\src\\Application\\Sonata\\PageBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\PageBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\page-bundle\\Resources\\config\\doctrine' => 'Sonata\\PageBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\MediaBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\MediaBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\media-bundle\\Resources\\config\\doctrine' => 'Sonata\\MediaBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\NewsBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\NewsBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\news-bundle\\Resources\\config\\doctrine' => 'Sonata\\NewsBundle\\Entity', $this->targetDirs[3] . '\\vendor\\friendsofsymfony\\user-bundle\\FOS\\UserBundle\\Resources\\config\\doctrine' => 'FOS\\UserBundle\\Entity', $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\\sonata-project\\notification-bundle\\Resources\\config\\doctrine' => 'Sonata\\NotificationBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\NotificationBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\NotificationBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\OrderBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\OrderBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\ecommerce\\src\\OrderBundle\\Resources\\config\\doctrine' => 'Sonata\\OrderBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\PaymentBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\PaymentBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\ecommerce\\src\\PaymentBundle\\Resources\\config\\doctrine' => 'Sonata\\PaymentBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\ProductBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\ProductBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\ecommerce\\src\\ProductBundle\\Resources\\config\\doctrine' => 'Sonata\\ProductBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\InvoiceBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\InvoiceBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\ecommerce\\src\\InvoiceBundle\\Resources\\config\\doctrine' => 'Sonata\\InvoiceBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\CustomerBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\CustomerBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\ecommerce\\src\\CustomerBundle\\Resources\\config\\doctrine' => 'Sonata\\CustomerBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\BasketBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\BasketBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\ecommerce\\src\\BasketBundle\\Resources\\config\\doctrine' => 'Sonata\\BasketBundle\\Entity', $this->targetDirs[3] . '\\vendor\\friendsofsymfony\\comment-bundle\\FOS\\CommentBundle\\Resources\\config\\doctrine' => 'FOS\\CommentBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\comment-bundle\\Resources\\config\\doctrine' => 'Sonata\\CommentBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\CommentBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\CommentBundle\\Entity', $this->targetDirs[3] . '\\vendor\\sonata-project\\classification-bundle\\Resources\\config\\doctrine' => 'Sonata\\ClassificationBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\ClassificationBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\ClassificationBundle\\Entity', $this->targetDirs[3] . '\\vendor\\stephpy\\timeline-bundle\\Resources\\config\\doctrine' => 'Spy\\TimelineBundle\\Entity', $this->targetDirs[3] . '\\src\\Application\\Sonata\\TimelineBundle\\Resources\\config\\doctrine' => 'Application\\Sonata\\TimelineBundle\\Entity')); $b->setGlobalBasename('mapping'); $c = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '\\src\\Sonata\\Bundle\\DemoBundle\\Entity', 1 => $this->targetDirs[3] . '\\vendor\\sonata-project\\timeline-bundle\\Entity', 2 => $this->targetDirs[3] . '\\src\\Test\\TaskBundle\\Entity')); $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $d->addDriver($b, 'Application\\Sonata\\PageBundle\\Entity'); $d->addDriver($b, 'Sonata\\PageBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\MediaBundle\\Entity'); $d->addDriver($b, 'Sonata\\MediaBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\NewsBundle\\Entity'); $d->addDriver($b, 'Sonata\\NewsBundle\\Entity'); $d->addDriver($b, 'FOS\\UserBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\UserBundle\\Entity'); $d->addDriver($b, 'Sonata\\UserBundle\\Entity'); $d->addDriver($b, 'Sonata\\NotificationBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\NotificationBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\OrderBundle\\Entity'); $d->addDriver($b, 'Sonata\\OrderBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\PaymentBundle\\Entity'); $d->addDriver($b, 'Sonata\\PaymentBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\ProductBundle\\Entity'); $d->addDriver($b, 'Sonata\\ProductBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\InvoiceBundle\\Entity'); $d->addDriver($b, 'Sonata\\InvoiceBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\CustomerBundle\\Entity'); $d->addDriver($b, 'Sonata\\CustomerBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\BasketBundle\\Entity'); $d->addDriver($b, 'Sonata\\BasketBundle\\Entity'); $d->addDriver($b, 'FOS\\CommentBundle\\Entity'); $d->addDriver($b, 'Sonata\\CommentBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\CommentBundle\\Entity'); $d->addDriver($b, 'Sonata\\ClassificationBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\ClassificationBundle\\Entity'); $d->addDriver($b, 'Spy\\TimelineBundle\\Entity'); $d->addDriver($b, 'Application\\Sonata\\TimelineBundle\\Entity'); $d->addDriver($c, 'Sonata\\Bundle\\DemoBundle\\Entity'); $d->addDriver($c, 'Sonata\\TimelineBundle\\Entity'); $d->addDriver($c, 'Test\\TaskBundle\\Entity'); $e = new \Doctrine\ORM\Configuration(); $e->setEntityNamespaces(array('ApplicationSonataPageBundle' => 'Application\\Sonata\\PageBundle\\Entity', 'SonataPageBundle' => 'Sonata\\PageBundle\\Entity', 'ApplicationSonataMediaBundle' => 'Application\\Sonata\\MediaBundle\\Entity', 'SonataMediaBundle' => 'Sonata\\MediaBundle\\Entity', 'ApplicationSonataNewsBundle' => 'Application\\Sonata\\NewsBundle\\Entity', 'SonataNewsBundle' => 'Sonata\\NewsBundle\\Entity', 'FOSUserBundle' => 'FOS\\UserBundle\\Entity', 'ApplicationSonataUserBundle' => 'Application\\Sonata\\UserBundle\\Entity', 'SonataUserBundle' => 'Sonata\\UserBundle\\Entity', 'SonataNotificationBundle' => 'Sonata\\NotificationBundle\\Entity', 'ApplicationSonataNotificationBundle' => 'Application\\Sonata\\NotificationBundle\\Entity', 'ApplicationSonataOrderBundle' => 'Application\\Sonata\\OrderBundle\\Entity', 'SonataOrderBundle' => 'Sonata\\OrderBundle\\Entity', 'ApplicationSonataPaymentBundle' => 'Application\\Sonata\\PaymentBundle\\Entity', 'SonataPaymentBundle' => 'Sonata\\PaymentBundle\\Entity', 'ApplicationSonataProductBundle' => 'Application\\Sonata\\ProductBundle\\Entity', 'SonataProductBundle' => 'Sonata\\ProductBundle\\Entity', 'ApplicationSonataInvoiceBundle' => 'Application\\Sonata\\InvoiceBundle\\Entity', 'SonataInvoiceBundle' => 'Sonata\\InvoiceBundle\\Entity', 'ApplicationSonataCustomerBundle' => 'Application\\Sonata\\CustomerBundle\\Entity', 'SonataCustomerBundle' => 'Sonata\\CustomerBundle\\Entity', 'ApplicationSonataBasketBundle' => 'Application\\Sonata\\BasketBundle\\Entity', 'SonataBasketBundle' => 'Sonata\\BasketBundle\\Entity', 'FOSCommentBundle' => 'FOS\\CommentBundle\\Entity', 'SonataCommentBundle' => 'Sonata\\CommentBundle\\Entity', 'ApplicationSonataCommentBundle' => 'Application\\Sonata\\CommentBundle\\Entity', 'SonataClassificationBundle' => 'Sonata\\ClassificationBundle\\Entity', 'ApplicationSonataClassificationBundle' => 'Application\\Sonata\\ClassificationBundle\\Entity', 'SonataDemoBundle' => 'Sonata\\Bundle\\DemoBundle\\Entity', 'SpyTimelineBundle' => 'Spy\\TimelineBundle\\Entity', 'SonataTimelineBundle' => 'Sonata\\TimelineBundle\\Entity', 'ApplicationSonataTimelineBundle' => 'Application\\Sonata\\TimelineBundle\\Entity', 'TestTaskBundle' => 'Test\\TaskBundle\\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\DefaultNamingStrategy()); $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; }
protected function getDoctrine_Orm_DefaultEntityManagerService() { $a = new \Doctrine\ORM\Mapping\Driver\StaticPHPDriver(array(0 => $this->targetDirs[2] . '/bundles/FormBundle/Entity', 1 => $this->targetDirs[2] . '/bundles/CategoryBundle/Entity', 2 => $this->targetDirs[2] . '/bundles/LeadBundle/Entity', 3 => $this->targetDirs[2] . '/bundles/ReportBundle/Entity', 4 => $this->targetDirs[2] . '/bundles/PageBundle/Entity', 5 => $this->targetDirs[2] . '/bundles/CampaignBundle/Entity', 6 => $this->targetDirs[2] . '/bundles/PointBundle/Entity', 7 => $this->targetDirs[2] . '/bundles/ApiBundle/Entity', 8 => $this->targetDirs[2] . '/bundles/UserBundle/Entity', 9 => $this->targetDirs[2] . '/bundles/EmailBundle/Entity', 10 => $this->targetDirs[2] . '/bundles/PluginBundle/Entity', 11 => $this->targetDirs[2] . '/bundles/WebhookBundle/Entity', 12 => $this->targetDirs[2] . '/bundles/CoreBundle/Entity', 13 => $this->targetDirs[2] . '/bundles/AssetBundle/Entity')); $b = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array($this->targetDirs[3] . '/vendor/friendsofsymfony/oauth-server-bundle/FOS/OAuthServerBundle/Resources/config/doctrine' => 'FOS\\OAuthServerBundle\\Entity')); $b->setGlobalBasename('mapping'); $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $c->addDriver($a, 'Mautic\\FormBundle\\Entity'); $c->addDriver($a, 'Mautic\\CategoryBundle\\Entity'); $c->addDriver($a, 'Mautic\\LeadBundle\\Entity'); $c->addDriver($a, 'Mautic\\ReportBundle\\Entity'); $c->addDriver($a, 'Mautic\\PageBundle\\Entity'); $c->addDriver($a, 'Mautic\\CampaignBundle\\Entity'); $c->addDriver($a, 'Mautic\\PointBundle\\Entity'); $c->addDriver($a, 'Mautic\\ApiBundle\\Entity'); $c->addDriver($a, 'Mautic\\UserBundle\\Entity'); $c->addDriver($a, 'Mautic\\EmailBundle\\Entity'); $c->addDriver($a, 'Mautic\\PluginBundle\\Entity'); $c->addDriver($a, 'Mautic\\WebhookBundle\\Entity'); $c->addDriver($a, 'Mautic\\CoreBundle\\Entity'); $c->addDriver($a, 'Mautic\\AssetBundle\\Entity'); $c->addDriver($b, 'FOS\\OAuthServerBundle\\Entity'); $c->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/willdurand/oauth-server-bundle/Resources/config/model' => 'Bazinga\\OAuthServerBundle\\Model'), '.orm.xml')), 'Bazinga\\OAuthServerBundle\\Model'); $d = new \Doctrine\ORM\Configuration(); $d->setEntityNamespaces(array('MauticFormBundle' => 'Mautic\\FormBundle\\Entity', 'MauticCategoryBundle' => 'Mautic\\CategoryBundle\\Entity', 'MauticLeadBundle' => 'Mautic\\LeadBundle\\Entity', 'MauticReportBundle' => 'Mautic\\ReportBundle\\Entity', 'MauticPageBundle' => 'Mautic\\PageBundle\\Entity', 'MauticCampaignBundle' => 'Mautic\\CampaignBundle\\Entity', 'MauticPointBundle' => 'Mautic\\PointBundle\\Entity', 'MauticApiBundle' => 'Mautic\\ApiBundle\\Entity', 'MauticUserBundle' => 'Mautic\\UserBundle\\Entity', 'MauticEmailBundle' => 'Mautic\\EmailBundle\\Entity', 'MauticPluginBundle' => 'Mautic\\PluginBundle\\Entity', 'MauticWebhookBundle' => 'Mautic\\WebhookBundle\\Entity', 'MauticCoreBundle' => 'Mautic\\CoreBundle\\Entity', 'MauticAssetBundle' => 'Mautic\\AssetBundle\\Entity', 'FOSOAuthServerBundle' => 'FOS\\OAuthServerBundle\\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->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; }
/** * @param $cache * @return DoctrineConfig * @throws \Doctrine\ORM\ORMException */ protected function createDoctrineConfig($cache) { $debug = config('doctrine.debug', config('app.debug', false)); $metadataConfig = config('doctrine.metadata', ['driver' => 'config']); $proxyDir = config('doctrine.proxy_classes.directory', storage_path('doctrine/proxies')); // Note: Don't worry, caches are configured below. $doctrineConfig = Setup::createConfiguration($debug, $proxyDir, null); if (!empty($metadataConfig) && isset($metadataConfig[0]) && is_array($metadataConfig[0])) { $metadataDriver = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); foreach ($metadataConfig as $subDriverConfig) { if (!is_array($subDriverConfig)) { continue; } $metadataDriver->addDriver($this->createMetadataDriver($doctrineConfig, $subDriverConfig), array_get($subDriverConfig, 'namespace', 'App')); if (isset($subDriverConfig['namespace']) && isset($subDriverConfig['alias'])) { $doctrineConfig->addEntityNamespace($subDriverConfig['alias'], $subDriverConfig['namespace']); } } } else { $metadataDriver = $this->createMetadataDriver($doctrineConfig, $metadataConfig); } $doctrineConfig->setMetadataDriverImpl($metadataDriver); //add in trig functions to doctrine for mysql $doctrineConfig->setCustomNumericFunctions(array('ACOS' => 'DoctrineExtensions\\Query\\Mysql\\Acos', 'ASIN' => 'DoctrineExtensions\\Query\\Mysql\\Asin', 'ATAN' => 'DoctrineExtensions\\Query\\Mysql\\Atan', 'ATAN2' => 'DoctrineExtensions\\Query\\Mysql\\Atan2', 'COS' => 'DoctrineExtensions\\Query\\Mysql\\Cos', 'COT' => 'DoctrineExtensions\\Query\\Mysql\\Cot', 'DEGREES' => 'DoctrineExtensions\\Query\\Mysql\\Degrees', 'RADIANS' => 'DoctrineExtensions\\Query\\Mysql\\Radians', 'SIN' => 'DoctrineExtensions\\Query\\Mysql\\Sin', 'TAN' => 'DoctrineExtensions\\Query\\Mysql\\Tan')); // Note: These must occur after Setup::createAnnotationMetadataConfiguration() in order to set custom namespaces properly if ($cache) { $doctrineConfig->setMetadataCacheImpl($cache); $doctrineConfig->setQueryCacheImpl($cache); $doctrineConfig->setResultCacheImpl($cache); } $doctrineConfig->setAutoGenerateProxyClasses(config('doctrine.proxy_classes.auto_generate', !$debug)); $doctrineConfig->setDefaultRepositoryClassName(config('doctrine.default_repository', '\\Doctrine\\ORM\\EntityRepository')); $doctrineConfig->setSQLLogger(config('doctrine.sql_logger')); if ($proxyClassNamespace = config('doctrine.proxy_classes.namespace')) { $doctrineConfig->setProxyNamespace($proxyClassNamespace); } return $doctrineConfig; }
/** * 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\\BackOffice\\RO\\UtilisateurBundle\\Entity', 1 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\AgenceBundle\\Entity', 2 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\VehiculeBundle\\Entity', 3 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\EquipementBundle\\Entity', 4 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\ModeleBundle\\Entity', 5 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\MarqueBundle\\Entity', 6 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\CategorieBundle\\Entity', 7 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\EntrepriseBundle\\Entity', 8 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\ClientBundle\\Entity', 9 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\ContratBundle\\Entity', 10 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\FactureBundle\\Entity', 11 => $this->targetDirs[3] . '\\src\\BackOffice\\RO\\ReservationBundle\\Entity')); $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $c->addDriver($b, 'BackOffice\\RO\\UtilisateurBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\AgenceBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\VehiculeBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\EquipementBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\ModeleBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\MarqueBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\CategorieBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\EntrepriseBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\ClientBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\ContratBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\FactureBundle\\Entity'); $c->addDriver($b, 'BackOffice\\RO\\ReservationBundle\\Entity'); $d = new \Doctrine\ORM\Configuration(); $d->setEntityNamespaces(array('ROUtilisateurBundle' => 'BackOffice\\RO\\UtilisateurBundle\\Entity', 'ROAgenceBundle' => 'BackOffice\\RO\\AgenceBundle\\Entity', 'ROVehiculeBundle' => 'BackOffice\\RO\\VehiculeBundle\\Entity', 'ROEquipementBundle' => 'BackOffice\\RO\\EquipementBundle\\Entity', 'ROModeleBundle' => 'BackOffice\\RO\\ModeleBundle\\Entity', 'ROMarqueBundle' => 'BackOffice\\RO\\MarqueBundle\\Entity', 'ROCategorieBundle' => 'BackOffice\\RO\\CategorieBundle\\Entity', 'ROEntrepriseBundle' => 'BackOffice\\RO\\EntrepriseBundle\\Entity', 'ROClientBundle' => 'BackOffice\\RO\\ClientBundle\\Entity', 'ROContratBundle' => 'BackOffice\\RO\\ContratBundle\\Entity', 'ROFactureBundle' => 'BackOffice\\RO\\FactureBundle\\Entity', 'ROReservationBundle' => 'BackOffice\\RO\\ReservationBundle\\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->setEntityListenerResolver($this->get('doctrine.orm.default_entity_listener_resolver')); $d->addCustomStringFunction('groupConcat', 'BackOffice\\RO\\UtilisateurBundle\\DQL\\GroupConcat'); $d->addCustomStringFunction('replaceString', 'BackOffice\\RO\\UtilisateurBundle\\DQL\\ReplaceString'); $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; }
/** * 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); }
/** * @return Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain */ public function createServiceDoctrine__default__metadataDriver() { $service = new Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $service->addDriver($this->getService('doctrine.default.driver.App.annotationsImpl'), 'App'); $service->addDriver($this->getService('doctrine.default.driver.Kdyby_Doctrine.annotationsImpl'), 'Kdyby\\Doctrine'); return $service; }
/** * Gets the 'doctrine_phpcr.odm.default_document_manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return \Doctrine\ODM\PHPCR\DocumentManager A Doctrine\ODM\PHPCR\DocumentManager instance. */ protected function getDoctrinePhpcr_Odm_DefaultDocumentManagerService() { $a = $this->get('annotation_reader'); $b = new \Doctrine\Common\Cache\ArrayCache(); $b->setNamespace('sf2phpcr_default_8abfb5439f3e3c6366a9a2a7d225b51607df7dd909070cd38fddb5e661b6f197'); $c = new \Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver($a, array(0 => $this->targetDirs[3] . '/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Document', 1 => $this->targetDirs[3] . '/vendor/sonata-project/user-bundle/Document', 2 => $this->targetDirs[3] . '/src/Acme/BasicCmsBundle/Document', 3 => $this->targetDirs[3] . '/src/Application/Sonata/UserBundle/Document', 4 => $this->targetDirs[3] . '/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Document')); $d = new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/symfony-cmf/routing-bundle/Resources/config/doctrine-model' => 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Model', $this->targetDirs[3] . '/vendor/symfony-cmf/routing-bundle/Resources/config/doctrine-phpcr' => 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Doctrine\\Phpcr'), '.phpcr.xml'); $e = new \Doctrine\ODM\PHPCR\Mapping\Driver\XmlDriver($d); $f = new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/symfony-cmf/menu-bundle/Resources/config/doctrine-model' => 'Symfony\\Cmf\\Bundle\\MenuBundle\\Model', $this->targetDirs[3] . '/vendor/symfony-cmf/menu-bundle/Resources/config/doctrine-phpcr' => 'Symfony\\Cmf\\Bundle\\MenuBundle\\Doctrine\\Phpcr'), '.phpcr.xml'); $g = new \Doctrine\ODM\PHPCR\Mapping\Driver\XmlDriver($f); $h = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $h->addDriver($c, 'FOS\\UserBundle\\Document'); $h->addDriver($c, 'Sonata\\UserBundle\\Document'); $h->addDriver($c, 'Acme\\BasicCmsBundle\\Document'); $h->addDriver($c, 'Application\\Sonata\\UserBundle\\Document'); $h->addDriver($c, 'Doctrine\\ODM\\PHPCR\\Document'); $h->addDriver(new \Doctrine\ODM\PHPCR\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator(array(0 => $this->targetDirs[3] . '/vendor/symfony-cmf/routing-bundle/Resources/config/doctrine-base'), '.phpcr.xml')), 'Symfony\\Component\\Routing'); $h->addDriver($e, 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Model'); $h->addDriver($e, 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Doctrine\\Phpcr'); $h->addDriver(new \Doctrine\ODM\PHPCR\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array($this->targetDirs[3] . '/vendor/symfony-cmf/routing-auto-bundle/Resources/config/doctrine-model' => 'Symfony\\Cmf\\Bundle\\RoutingAutoBundle\\Model'), '.phpcr.xml')), 'Symfony\\Cmf\\Bundle\\RoutingAutoBundle\\Model'); $h->addDriver($g, 'Symfony\\Cmf\\Bundle\\MenuBundle\\Model'); $h->addDriver($g, 'Symfony\\Cmf\\Bundle\\MenuBundle\\Doctrine\\Phpcr'); $i = new \Doctrine\ODM\PHPCR\Configuration(); $i->setDocumentNamespaces(array('FOSUserBundle' => 'FOS\\UserBundle\\Document', 'SonataUserBundle' => 'Sonata\\UserBundle\\Document', 'AcmeBasicCmsBundle' => 'Acme\\BasicCmsBundle\\Document', 'ApplicationSonataUserBundle' => 'Application\\Sonata\\UserBundle\\Document', '__PHPCRODM__' => 'Doctrine\\ODM\\PHPCR\\Document')); $i->setMetadataCacheImpl($b); $i->setMetadataDriverImpl($h, false); $i->setProxyDir(__DIR__ . '/doctrine/PHPCRProxies'); $i->setProxyNamespace('PHPCRProxies'); $i->setAutoGenerateProxyClasses(true); $i->setClassMetadataFactoryName('Doctrine\\ODM\\PHPCR\\Mapping\\ClassMetadataFactory'); $i->setDefaultRepositoryClassName('Doctrine\\ODM\\PHPCR\\DocumentRepository'); $i->addDocumentNamespace('CmfRoutingBundle', 'Symfony\\Cmf\\Bundle\\RoutingBundle\\Doctrine\\Phpcr'); $i->addDocumentNamespace('CmfRoutingAutoBundle', 'Symfony\\Cmf\\Bundle\\RoutingAutoBundle\\Model'); $i->addDocumentNamespace('CmfMenuBundle', 'Symfony\\Cmf\\Bundle\\MenuBundle\\Doctrine\\Phpcr'); $j = new \Symfony\Bridge\Doctrine\ContainerAwareEventManager($this); $j->addEventSubscriber($this->get('cmf_core.persistence.phpcr.non_translatable_metadata_listener')); $j->addEventListener(array(0 => 'postLoad', 1 => 'postPersist', 2 => 'postMove'), $this->get('cmf_routing.phpcrodm_route_idprefix_listener')); $j->addEventListener(array(0 => 'onFlush', 1 => 'endFlush'), $this->get('cmf_routing_auto.phpcrodm_auto_route_listener')); return $this->services['doctrine_phpcr.odm.default_document_manager'] = new \Doctrine\ODM\PHPCR\DocumentManager($this->get('doctrine_phpcr.default_session'), $i, $j); }
/** * Gets the 'doctrine_phpcr.odm.default_document_manager' service. * * This service is shared. * This method always returns the same instance of the service. * * @return Doctrine\ODM\PHPCR\DocumentManager A Doctrine\ODM\PHPCR\DocumentManager instance. */ protected function getDoctrinePhpcr_Odm_DefaultDocumentManagerService() { $a = $this->get('annotation_reader'); $b = new \Doctrine\Common\Cache\ArrayCache(); $b->setNamespace('sf2phpcr_default_1f474d7255df8ad758b666714222d890'); $c = new \Doctrine\ODM\PHPCR\Mapping\Driver\AnnotationDriver($a, array(0 => '/home/markus/development/php.labs/symfony/src/Mtol/TodoBundle/Document', 1 => '/home/markus/development/php.labs/symfony/vendor/doctrine/phpcr-odm/lib/Doctrine/ODM/PHPCR/Document')); $d = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $d->addDriver($c, 'Mtol\\TodoBundle\\Document'); $d->addDriver($c, 'Doctrine\\ODM\\PHPCR\\Document'); $e = new \Doctrine\ODM\PHPCR\Configuration(); $e->setDocumentNamespaces(array('MtolTodoBundle' => 'Mtol\\TodoBundle\\Document', '__PHPCRODM__' => 'Doctrine\\ODM\\PHPCR\\Document')); $e->setMetadataCacheImpl($b); $e->setMetadataDriverImpl($d, false); $e->setProxyDir('/home/markus/development/php.labs/symfony/app/cache/dev/doctrine/PHPCRProxies'); $e->setProxyNamespace('PHPCRProxies'); $e->setAutoGenerateProxyClasses(true); return $this->services['doctrine_phpcr.odm.default_document_manager'] = new \Doctrine\ODM\PHPCR\DocumentManager($this->get('doctrine_phpcr.default_session'), $e, new \Symfony\Bridge\Doctrine\ContainerAwareEventManager($this)); }
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; }
/** * 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/Acme/BlogBundle/Entity', 1 => $this->targetDirs[3] . '/src/etu/doctrineBundle/Entity', 2 => $this->targetDirs[3] . '/src/mohamed/MyAppBundle/Entity', 3 => $this->targetDirs[3] . '/src/dciss/MyApp/BlogBundle/Entity')); $c = new \Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain(); $c->addDriver($b, 'Acme\\BlogBundle\\Entity'); $c->addDriver($b, 'etu\\doctrineBundle\\Entity'); $c->addDriver($b, 'mohamed\\MyAppBundle\\Entity'); $c->addDriver($b, 'dciss\\MyApp\\BlogBundle\\Entity'); $d = new \Doctrine\ORM\Configuration(); $d->setEntityNamespaces(array('AcmeBlogBundle' => 'Acme\\BlogBundle\\Entity', 'etudoctrineBundle' => 'etu\\doctrineBundle\\Entity', 'mohamedMyAppBundle' => 'mohamed\\MyAppBundle\\Entity', 'dcissMyAppBlogBundle' => 'dciss\\MyApp\\BlogBundle\\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; }