protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     require_once 'D:/xampp/htdocs/symfony_installer/rest/app/cache/prod/jms_diextra/doctrine/EntityManager_565715f0d6f2e.php';
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_0e40646fce844daa965ec40672242e7d');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_0e40646fce844daa965ec40672242e7d');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_0e40646fce844daa965ec40672242e7d');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => 'D:\\xampp\\htdocs\\symfony_installer\\rest\\src\\WireDelta\\DemoBundle\\Entity')), 'WireDelta\\DemoBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('WireDeltaDemoBundle' => 'WireDelta\\DemoBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('D:/xampp/htdocs/symfony_installer/rest/app/cache/prod/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());
     $f = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $e);
     $this->get('doctrine.orm.default_manager_configurator')->configure($f);
     return $this->services['doctrine.orm.default_entity_manager'] = new \EntityManager565715f0d6f2e_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager($f, $this);
 }
Пример #2
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_009ddab573918805ac10dd8e02df21ad9f522de9b39f898aae553f354da1859d');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_009ddab573918805ac10dd8e02df21ad9f522de9b39f898aae553f354da1859d');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_009ddab573918805ac10dd8e02df21ad9f522de9b39f898aae553f354da1859d');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/haritz/symfony2/marca/src/uni/bundle/marcaBundle/Entity')), 'uni\\bundle\\marcaBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('uniMarcaBundle' => 'uni\\bundle\\marcaBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/haritz/symfony2/marca/app/cache/prod/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());
     $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\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_9d968dc3678c378fa217a1250471e79fb7e4263cf64827a5f1c8cd74fdb740d9');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_9d968dc3678c378fa217a1250471e79fb7e4263cf64827a5f1c8cd74fdb740d9');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_9d968dc3678c378fa217a1250471e79fb7e4263cf64827a5f1c8cd74fdb740d9');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/itziar/web/synfony2/itziar-superheroes/src/uni/bundle/superhBundle/Entity')), 'uni\\bundle\\superhBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('uniSuperhBundle' => 'uni\\bundle\\superhBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/itziar/web/synfony2/itziar-superheroes/app/cache/prod/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());
     $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\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_a10d301149e084ecdc488926bd33b00804ee0e5e92d7232190c350bbe261b941');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_a10d301149e084ecdc488926bd33b00804ee0e5e92d7232190c350bbe261b941');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_a10d301149e084ecdc488926bd33b00804ee0e5e92d7232190c350bbe261b941');
     $d = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array('/var/www/html/LetsVolunteer/src/Ridwan/EntityBundle/Resources/config/doctrine' => 'Ridwan\\EntityBundle\\Entity', '/var/www/html/LetsVolunteer/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/doctrine' => 'FOS\\UserBundle\\Entity'));
     $d->setGlobalBasename('mapping');
     $e = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $e->addDriver($d, 'Ridwan\\EntityBundle\\Entity');
     $e->addDriver($d, 'FOS\\UserBundle\\Entity');
     $f = new \Doctrine\ORM\Configuration();
     $f->setEntityNamespaces(array('RidwanEntityBundle' => 'Ridwan\\EntityBundle\\Entity', 'FOSUserBundle' => 'FOS\\UserBundle\\Entity'));
     $f->setMetadataCacheImpl($a);
     $f->setQueryCacheImpl($b);
     $f->setResultCacheImpl($c);
     $f->setMetadataDriverImpl($e);
     $f->setProxyDir('/var/www/html/LetsVolunteer/app/cache/prod/doctrine/orm/Proxies');
     $f->setProxyNamespace('Proxies');
     $f->setAutoGenerateProxyClasses(false);
     $f->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $f->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $f->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $this->services['doctrine.orm.default_entity_manager'] = $instance = \Doctrine\ORM\EntityManager::create($this->get('doctrine.dbal.default_connection'), $f);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
Пример #5
0
 private function init()
 {
     if (!class_exists('PDO') || !in_array('sqlite', \PDO::getAvailableDrivers())) {
         \PHPUnit_Framework_TestCase::markTestSkipped('This test requires SQLite support in your environment');
     }
     $config = new \Doctrine\ORM\Configuration();
     $config->setEntityNamespaces(array('UebbHateoasBundle' => 'uebb\\HateoasBundle\\Tests\\Entity'));
     $config->setAutoGenerateProxyClasses(true);
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setProxyNamespace('UebbHateoasTests\\Doctrine');
     $reader = new AnnotationReader();
     $metadataDriver = new AnnotationDriver($reader, 'uebb\\HateoasBundle\\Tests\\Entity');
     $config->setMetadataDriverImpl($metadataDriver);
     $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $params = array('driver' => 'pdo_sqlite', 'memory' => true);
     $this->entityManager = EntityManager::create($params, $config);
     $this->linkParser = $this->getMock('uebb\\HateoasBundle\\Service\\LinkParserInterface');
     $this->linkResolver = $this->getMock('uebb\\HateoasBundle\\Service\\LinkResolverInterface');
     $this->dispatcher = $this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
     $this->formResolver = new FormResolver($this->factory, $reader);
     $this->queryParser = $this->getMock('uebb\\HateoasBundle\\Service\\QueryParserInterface');
     $this->serializer = $this->getMock('JMS\\Serializer\\SerializerInterface');
     $this->validator = $this->getMock('Symfony\\Component\\Validator\\Validator\\ValidatorInterface');
     $this->requestProcessor = new RequestProcessor($this->entityManager, $this->linkParser, $this->linkResolver, $this->formResolver, $this->dispatcher, $this->queryParser, $this->serializer, $this->validator);
 }
Пример #6
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     require_once '/var/www/Symfony/app/cache/prod/jms_diextra/doctrine/EntityManager.php';
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_a92f94852d95a1e374806d6b93dd509c');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_a92f94852d95a1e374806d6b93dd509c');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_a92f94852d95a1e374806d6b93dd509c');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/var/www/Symfony/src/Form/FormBundle/Entity')), 'Form\\FormBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('FormFormBundle' => 'Form\\FormBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/var/www/Symfony/app/cache/prod/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());
     $f = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $e);
     $this->get('doctrine.orm.default_manager_configurator')->configure($f);
     return $this->services['doctrine.orm.default_entity_manager'] = new \EM50865219e3628_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager($f, $this);
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_4daee9dfb8af5f706c767d9f3ee73fb6');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_4daee9dfb8af5f706c767d9f3ee73fb6');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_4daee9dfb8af5f706c767d9f3ee73fb6');
     $d = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array('C:\\xampp\\htdocs\\betafinale\\vendor\\friendsofsymfony\\user-bundle\\FOS\\UserBundle\\Resources\\config\\doctrine' => 'FOS\\UserBundle\\Entity'));
     $d->setGlobalBasename('mapping');
     $e = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $e->addDriver($d, 'FOS\\UserBundle\\Entity');
     $e->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => 'C:\\xampp\\htdocs\\betafinale\\src\\Utilisateur\\UtilisateurBundle\\Entity')), 'Utilisateur\\UtilisateurBundle\\Entity');
     $e->addDriver(new \Doctrine\ORM\Mapping\Driver\XmlDriver(new \Doctrine\Common\Persistence\Mapping\Driver\SymfonyFileLocator(array('C:\\xampp\\htdocs\\betafinale\\vendor\\friendsofsymfony\\user-bundle\\FOS\\UserBundle\\Resources\\config\\doctrine\\model' => 'FOS\\UserBundle\\Model'), '.orm.xml')), 'FOS\\UserBundle\\Model');
     $f = new \Doctrine\ORM\Configuration();
     $f->setEntityNamespaces(array('FOSUserBundle' => 'FOS\\UserBundle\\Entity', 'UtilisateurBundle' => 'Utilisateur\\UtilisateurBundle\\Entity'));
     $f->setMetadataCacheImpl($a);
     $f->setQueryCacheImpl($b);
     $f->setResultCacheImpl($c);
     $f->setMetadataDriverImpl($e);
     $f->setProxyDir('C:/xampp/htdocs/betafinale/app/cache/prod/doctrine/orm/Proxies');
     $f->setProxyNamespace('Proxies');
     $f->setAutoGenerateProxyClasses(false);
     $f->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $f->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $f->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $this->services['doctrine.orm.default_entity_manager'] = $instance = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $f);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
Пример #8
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_8d769ce4aa22abd637c7b7052818602e040efc33d69a70ac4544342291b37ba8');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_8d769ce4aa22abd637c7b7052818602e040efc33d69a70ac4544342291b37ba8');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_8d769ce4aa22abd637c7b7052818602e040efc33d69a70ac4544342291b37ba8');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/iker/symfony2/marca/src/uni/bundle/marcaBundle/Entity')), 'uni\\bundle\\marcaBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('uniMarcaBundle' => 'uni\\bundle\\marcaBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/iker/symfony2/marca/app/cache/prod/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());
     $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\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_96cf3538b0da5baecb67532527b29efb');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_96cf3538b0da5baecb67532527b29efb');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_96cf3538b0da5baecb67532527b29efb');
     $d = new \Doctrine\ORM\Mapping\Driver\SimplifiedXmlDriver(array('C:\\wamp\\www\\Gestion_Recouvrement\\src\\DbSp\\DbBundle\\Resources\\config\\doctrine' => 'DbSp\\DbBundle\\Entity'));
     $d->setGlobalBasename('mapping');
     $e = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $e->addDriver($d, 'DbSp\\DbBundle\\Entity');
     $f = new \Doctrine\ORM\Configuration();
     $f->setEntityNamespaces(array('DbSpDbBundle' => 'DbSp\\DbBundle\\Entity'));
     $f->setMetadataCacheImpl($a);
     $f->setQueryCacheImpl($b);
     $f->setResultCacheImpl($c);
     $f->setMetadataDriverImpl($e);
     $f->setProxyDir('C:/wamp/www/Gestion_Recouvrement/app/cache/prod/doctrine/orm/Proxies');
     $f->setProxyNamespace('Proxies');
     $f->setAutoGenerateProxyClasses(false);
     $f->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $f->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $f->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $this->services['doctrine.orm.default_entity_manager'] = $instance = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $f);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
Пример #10
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     require_once '/opt/lampp/htdocs/symfony2/symfony/app/cache/prod/jms_diextra/doctrine/EntityManager_509982243f179.php';
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_3f1b97459909d5be8f95fdd1560f907a');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_3f1b97459909d5be8f95fdd1560f907a');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_3f1b97459909d5be8f95fdd1560f907a');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array());
     $d->setMetadataCacheImpl($a);
     $d->setQueryCacheImpl($b);
     $d->setResultCacheImpl($c);
     $d->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\DriverChain());
     $d->setProxyDir('/opt/lampp/htdocs/symfony2/symfony/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());
     $e = call_user_func(array('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 \EntityManager509982243f179_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager($e, $this);
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = $this->get('annotation_reader');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_0b7ea2905c8c334a3198b040659e40a6');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_0b7ea2905c8c334a3198b040659e40a6');
     $d = new \Doctrine\Common\Cache\ArrayCache();
     $d->setNamespace('sf2orm_default_0b7ea2905c8c334a3198b040659e40a6');
     $e = new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($a, array(0 => 'C:\\xampp\\htdocs\\ociosos\\src\\Ociosos\\ComunBundle\\Entity', 1 => 'C:\\xampp\\htdocs\\ociosos\\src\\Ociosos\\UsuarioBundle\\Entity', 2 => 'C:\\xampp\\htdocs\\ociosos\\src\\Ociosos\\RodasXMLBundle\\Entity'));
     $f = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $f->addDriver($e, 'Ociosos\\ComunBundle\\Entity');
     $f->addDriver($e, 'Ociosos\\UsuarioBundle\\Entity');
     $f->addDriver($e, 'Ociosos\\RodasXMLBundle\\Entity');
     $g = new \Doctrine\ORM\Configuration();
     $g->setEntityNamespaces(array('ComunBundle' => 'Ociosos\\ComunBundle\\Entity', 'UsuarioBundle' => 'Ociosos\\UsuarioBundle\\Entity', 'RodasXMLBundle' => 'Ociosos\\RodasXMLBundle\\Entity'));
     $g->setMetadataCacheImpl($b);
     $g->setQueryCacheImpl($c);
     $g->setResultCacheImpl($d);
     $g->setMetadataDriverImpl($f);
     $g->setProxyDir('C:/xampp/htdocs/ociosos/app/cache/prod/doctrine/orm/Proxies');
     $g->setProxyNamespace('Proxies');
     $g->setAutoGenerateProxyClasses(false);
     $g->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     $g->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
     $g->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
     $this->services['doctrine.orm.default_entity_manager'] = $instance = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $g);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
Пример #12
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_34fb07f8c5c30a0161dab82f751c8632e441929962e443e4f0acfa325886b164');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_34fb07f8c5c30a0161dab82f751c8632e441929962e443e4f0acfa325886b164');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_34fb07f8c5c30a0161dab82f751c8632e441929962e443e4f0acfa325886b164');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/itziar/web/synfony2/recetas/src/uni/bundle/recetasBundle/Entity')), 'uni\\bundle\\recetasBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('uniRecetasBundle' => 'uni\\bundle\\recetasBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/itziar/web/synfony2/recetas/app/cache/prod/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());
     $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;
 }
Пример #13
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_212f582878cf7474c20ecc1bd0f75efb89c7ef7c7a33110da091960837c6c845');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_212f582878cf7474c20ecc1bd0f75efb89c7ef7c7a33110da091960837c6c845');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_212f582878cf7474c20ecc1bd0f75efb89c7ef7c7a33110da091960837c6c845');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/andoni/symfony2/Marca/src/Uni/Bundle/MarcaBundle/Entity')), 'Uni\\Bundle\\MarcaBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('uniMarcaBundle' => 'Uni\\Bundle\\MarcaBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/andoni/symfony2/Marca/app/cache/prod/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());
     $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\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_d8b0087a585fd8d1a917703a03663dadd0fbb62170bcdd10b61d3f5a3b162bd9');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_d8b0087a585fd8d1a917703a03663dadd0fbb62170bcdd10b61d3f5a3b162bd9');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_d8b0087a585fd8d1a917703a03663dadd0fbb62170bcdd10b61d3f5a3b162bd9');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($this->get('annotation_reader'), array(0 => '/home/ivan/symfony2/juegos/src/uniJuegos/Bundle/Entity')), 'uniJuegos\\Bundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('uniJuegosBundle' => 'uniJuegos\\Bundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/ivan/symfony2/juegos/app/cache/prod/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());
     $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 getEntityManager()
 {
     $config = new \Doctrine\ORM\Configuration();
     $config->setEntityNamespaces(['SymfonyTestsDoctrine' => 'Symfony\\Bridge\\Doctrine\\Tests\\Fixtures']);
     $config->setAutoGenerateProxyClasses(true);
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setProxyNamespace('SymfonyTests\\Doctrine');
     $config->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(new \Doctrine\Common\Annotations\AnnotationReader()));
     $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $params = ['driver' => 'pdo_sqlite', 'memory' => true];
     return \Doctrine\ORM\EntityManager::create($params, $config);
 }
 /**
  * @return Doctrine\ORM\EntityManager
  */
 protected function createEntityManager()
 {
     AnnotationRegistry::registerFile(__DIR__ . "/../../vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php");
     $annotationDriver = new AnnotationDriver(new AnnotationReader(), __DIR__ . "/Entity");
     $config = new \Doctrine\ORM\Configuration();
     $config->setAutoGenerateProxyClasses(true);
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setProxyNamespace('Psamatt\\Proxies');
     $config->setMetadataCacheImpl($cache = new \Doctrine\Common\Cache\ArrayCache());
     $config->setMetadataDriverImpl($annotationDriver);
     $config->setQueryCacheImpl($cache);
     $config->setEntityNamespaces(array('PsamattYamlExportBundle' => 'Psamatt\\YamlExportBundle\\Tests\\Command\\Entity'));
     $connectionOptions = array('driver' => 'pdo_sqlite', 'memory' => true);
     return \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
 }
 /**
  * Create an entityManager for testing
  *
  * @return EntityManager
  */
 public function createTestEntityManager()
 {
     $config = new \Doctrine\ORM\Configuration();
     $config->setEntityNamespaces(['SymfonyTestsDoctrine' => 'Symfony\\Bridge\\Doctrine\\Tests\\Fixtures']);
     $config->setAutoGenerateProxyClasses(true);
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setProxyNamespace('SymfonyTests\\Doctrine');
     $bundlePath = __DIR__ . "/../../../../..";
     $yamlDriver = new SimplifiedYamlDriver([$bundlePath . "/CatalogBundle/Resources/config/doctrine" => "Pim\\Bundle\\CatalogBundle\\Entity"]);
     $config->setMetadataDriverImpl($yamlDriver);
     $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $params = ['driver' => 'pdo_sqlite', 'memory' => true];
     return EntityManager::create($params, $config);
 }
Пример #18
0
 /**
  * @return EntityManager
  */
 public static function createTestEntityManager($paths = array())
 {
     if (!class_exists('PDO') || !in_array('sqlite', \PDO::getAvailableDrivers())) {
         self::markTestSkipped('This test requires SQLite support in your environment');
     }
     $config = new \Doctrine\ORM\Configuration();
     $config->setEntityNamespaces(array('SymfonyTestsDoctrine' => 'Symfony\\Bridge\\Doctrine\\Tests\\Fixtures'));
     $config->setAutoGenerateProxyClasses(true);
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setProxyNamespace('SymfonyTests\\Doctrine');
     $config->setMetadataDriverImpl(new AnnotationDriver(new AnnotationReader()));
     $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $params = array('driver' => 'pdo_sqlite', 'memory' => true);
     return EntityManager::create($params, $config);
 }
Пример #19
0
 /**
  * Returns an entity manager for testing.
  *
  * @return EntityManager
  */
 public static function createTestEntityManager()
 {
     if (!extension_loaded('pdo_sqlite')) {
         \PHPUnit_Framework_TestCase::markTestSkipped('Extension pdo_sqlite is required.');
     }
     $config = new \Doctrine\ORM\Configuration();
     $config->setEntityNamespaces(array('SymfonyTestsDoctrine' => 'Symfony\\Bridge\\Doctrine\\Tests\\Fixtures'));
     $config->setAutoGenerateProxyClasses(true);
     $config->setProxyDir(\sys_get_temp_dir());
     $config->setProxyNamespace('SymfonyTests\\Doctrine');
     $config->setMetadataDriverImpl(new AnnotationDriver(new AnnotationReader()));
     $config->setQueryCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache());
     $params = array('driver' => 'pdo_sqlite', 'memory' => true);
     return EntityManager::create($params, $config);
 }
 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('C:/xampp/htdocs/example/Cinemateka/finalProject/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->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'), $a);
     $this->get('doctrine.orm.default_manager_configurator')->configure($instance);
     return $instance;
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_458898d99abe08cb91f7831c25952de2');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_458898d99abe08cb91f7831c25952de2');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_458898d99abe08cb91f7831c25952de2');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array());
     $d->setMetadataCacheImpl($a);
     $d->setQueryCacheImpl($b);
     $d->setResultCacheImpl($c);
     $d->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\DriverChain());
     $d->setProxyDir('C:\\xampp\\htdocs\\symfonytable\\app/cache/prod/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(false);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $d);
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_2a2d4e63762832ee7c9ad1ca2edb387a');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_2a2d4e63762832ee7c9ad1ca2edb387a');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_2a2d4e63762832ee7c9ad1ca2edb387a');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array());
     $d->setMetadataCacheImpl($a);
     $d->setQueryCacheImpl($b);
     $d->setResultCacheImpl($c);
     $d->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\DriverChain());
     $d->setProxyDir('/var/www/test2/app/cache/prod/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(false);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $d);
 }
Пример #23
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_13de3c2587955e2a71f51c1a2c9a98b3');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_13de3c2587955e2a71f51c1a2c9a98b3');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_13de3c2587955e2a71f51c1a2c9a98b3');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array());
     $d->setMetadataCacheImpl($a);
     $d->setQueryCacheImpl($b);
     $d->setResultCacheImpl($c);
     $d->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\DriverChain());
     $d->setProxyDir('D:\\MyWork\\MeetingApp\\app/cache/prod/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(false);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $d);
 }
Пример #24
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_e14dfa6dc317405f673c4889aa171f27');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_e14dfa6dc317405f673c4889aa171f27');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_e14dfa6dc317405f673c4889aa171f27');
     $d = new \Doctrine\ORM\Configuration();
     $d->setEntityNamespaces(array());
     $d->setMetadataCacheImpl($a);
     $d->setQueryCacheImpl($b);
     $d->setResultCacheImpl($c);
     $d->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\DriverChain());
     $d->setProxyDir('C:\\wamp\\www\\mtproject\\scientist\\app/cache/prod/doctrine/orm/Proxies');
     $d->setProxyNamespace('Proxies');
     $d->setAutoGenerateProxyClasses(false);
     $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $d);
 }
 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;
 }
Пример #26
0
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     /** @var $options \DoctrineORMModule\Options\Configuration */
     $options = $this->getOptions($serviceLocator);
     $config = new \Doctrine\ORM\Configuration();
     $config->setAutoGenerateProxyClasses($options->getGenerateProxies());
     $config->setProxyDir($options->getProxyDir());
     $config->setProxyNamespace($options->getProxyNamespace());
     $config->setEntityNamespaces($options->getEntityNamespaces());
     $config->setCustomDatetimeFunctions($options->getDatetimeFunctions());
     $config->setCustomStringFunctions($options->getStringFunctions());
     $config->setCustomNumericFunctions($options->getNumericFunctions());
     foreach ($options->getNamedQueries() as $name => $query) {
         $config->addNamedQuery($name, $query);
     }
     foreach ($options->getNamedNativeQueries() as $name => $query) {
         $config->addNamedNativeQuery($name, $query['sql'], new $query['rsm']());
     }
     foreach ($options->getCustomHydrationModes() as $modeName => $hydrator) {
         $config->addCustomHydrationMode($modeName, $hydrator);
     }
     foreach ($options->getFilters() as $name => $class) {
         $config->addFilter($name, $class);
     }
     $config->setMetadataCacheImpl($serviceLocator->get($options->getMetadataCache()));
     $config->setQueryCacheImpl($serviceLocator->get($options->getQueryCache()));
     $config->setMetadataDriverImpl($serviceLocator->get($options->getDriver()));
     if ($namingStrategy = $options->getNamingStrategy()) {
         if (is_string($namingStrategy)) {
             if (!$serviceLocator->has($namingStrategy)) {
                 throw new InvalidArgumentException(sprintf('Naming strategy "%s" not found', $namingStrategy));
             }
             $config->setNamingStrategy($serviceLocator->get($namingStrategy));
         } else {
             $config->setNamingStrategy($namingStrategy);
         }
     }
     $this->setupDBALConfiguration($serviceLocator, $config);
     return $config;
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_28fbb686b577c74454a442d0c7af15b4');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_28fbb686b577c74454a442d0c7af15b4');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_28fbb686b577c74454a442d0c7af15b4');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(new \Symfony\Bridge\Doctrine\Annotations\IndexedReader($this->get('annotation_reader')), array(0 => '/home/vamps/sfprojects/Exigency/src/Pasa/RequirementBundle/Entity')), 'Pasa\\RequirementBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('PasaRequirementBundle' => 'Pasa\\RequirementBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('/home/vamps/sfprojects/Exigency/app/cache/prod/doctrine/orm/Proxies');
     $e->setProxyNamespace('Proxies');
     $e->setAutoGenerateProxyClasses(false);
     $e->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $e);
 }
Пример #28
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_bddc62fcad964f5f33eb80c56d142d7d');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_bddc62fcad964f5f33eb80c56d142d7d');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_bddc62fcad964f5f33eb80c56d142d7d');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Symfony\Bundle\DoctrineBundle\Mapping\Driver\XmlDriver(array('Foo\\BarBundle\\Entity' => 'C:\\xampp\\htdocs\\sesion\\src\\Foo\\BarBundle\\Resources\\config\\doctrine')), 'Foo\\BarBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('FooBarBundle' => 'Foo\\BarBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('C:\\xampp\\htdocs\\sesion\\app/cache/prod/doctrine/orm/Proxies');
     $e->setProxyNamespace('Proxies');
     $e->setAutoGenerateProxyClasses(false);
     $e->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $e);
 }
Пример #29
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_84be564a736592f5adb8a636ad76352d');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_84be564a736592f5adb8a636ad76352d');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_84be564a736592f5adb8a636ad76352d');
     $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
     $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(new \Symfony\Bundle\DoctrineBundle\Annotations\IndexedReader($this->get('annotation_reader')), array(0 => 'C:\\xampp\\htdocs\\padel\\src\\Padel\\LeagueBundle\\Entity')), 'Padel\\LeagueBundle\\Entity');
     $e = new \Doctrine\ORM\Configuration();
     $e->setEntityNamespaces(array('PadelLeagueBundle' => 'Padel\\LeagueBundle\\Entity'));
     $e->setMetadataCacheImpl($a);
     $e->setQueryCacheImpl($b);
     $e->setResultCacheImpl($c);
     $e->setMetadataDriverImpl($d);
     $e->setProxyDir('C:\\xampp\\htdocs\\padel\\app/cache/prod/doctrine/orm/Proxies');
     $e->setProxyNamespace('Proxies');
     $e->setAutoGenerateProxyClasses(false);
     $e->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
     return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $e);
 }
Пример #30
0
 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;
 }