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);
 }
 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;
 }
 /**
  * Factory method which creates an EntityManager.
  *
  * @return \Doctrine\ORM\EntityManager
  */
 public function create()
 {
     $config = new \Doctrine\ORM\Configuration();
     $config->setClassMetadataFactoryName('TYPO3\\Flow\\Persistence\\Doctrine\\Mapping\\ClassMetadataFactory');
     $cache = new \TYPO3\Flow\Persistence\Doctrine\CacheAdapter();
     // must use ObjectManager in compile phase...
     $cache->setCache($this->objectManager->get('TYPO3\\Flow\\Cache\\CacheManager')->getCache('Flow_Persistence_Doctrine'));
     $config->setMetadataCacheImpl($cache);
     $config->setQueryCacheImpl($cache);
     $resultCache = new \TYPO3\Flow\Persistence\Doctrine\CacheAdapter();
     // must use ObjectManager in compile phase...
     $resultCache->setCache($this->objectManager->get('TYPO3\\Flow\\Cache\\CacheManager')->getCache('Flow_Persistence_Doctrine_Results'));
     $config->setResultCacheImpl($resultCache);
     if (class_exists($this->settings['doctrine']['sqlLogger'])) {
         $config->setSQLLogger(new $this->settings['doctrine']['sqlLogger']());
     }
     $eventManager = $this->buildEventManager();
     $flowAnnotationDriver = $this->objectManager->get('TYPO3\\Flow\\Persistence\\Doctrine\\Mapping\\Driver\\FlowAnnotationDriver');
     $config->setMetadataDriverImpl($flowAnnotationDriver);
     $proxyDirectory = \TYPO3\Flow\Utility\Files::concatenatePaths(array($this->environment->getPathToTemporaryDirectory(), 'Doctrine/Proxies'));
     \TYPO3\Flow\Utility\Files::createDirectoryRecursively($proxyDirectory);
     $config->setProxyDir($proxyDirectory);
     $config->setProxyNamespace('TYPO3\\Flow\\Persistence\\Doctrine\\Proxies');
     $config->setAutoGenerateProxyClasses(FALSE);
     $entityManager = \Doctrine\ORM\EntityManager::create($this->settings['backendOptions'], $config, $eventManager);
     $flowAnnotationDriver->setEntityManager($entityManager);
     \Doctrine\DBAL\Types\Type::addType('objectarray', 'TYPO3\\Flow\\Persistence\\Doctrine\\DataTypes\\ObjectArray');
     if (isset($this->settings['doctrine']['filters']) && is_array($this->settings['doctrine']['filters'])) {
         foreach ($this->settings['doctrine']['filters'] as $filterName => $filterClass) {
             $config->addFilter($filterName, $filterClass);
             $entityManager->getFilters()->enable($filterName);
         }
     }
     return $entityManager;
 }
Ejemplo n.º 4
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);
 }
Ejemplo n.º 5
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);
 }
Ejemplo n.º 6
0
 /**
  * {@inheritdoc}
  */
 public function register(\Silex\Application $app)
 {
     $app['annotation.reader.internal'] = $app->share(function () use($app) {
         return new \Doctrine\Common\Annotations\AnnotationReader();
     });
     $app['annotation.reader'] = $app->share(function () use($app) {
         return new \Doctrine\Common\Annotations\CachedReader($app['annotation.reader.internal'], $app['app.cache']);
     });
     $app['orm.config.annotation.driver'] = $app->share(function () use($app) {
         return new \Doctrine\ORM\Mapping\Driver\AnnotationDriver($app['annotation.reader'], array(__DIR__ . '/Organizations'));
     });
     $app['orm.config'] = $app->share(function () use($app) {
         $config = new \Doctrine\ORM\Configuration();
         $config->setMetadataCacheImpl($app['app.cache']);
         $config->setResultCacheImpl($app['app.cache']);
         $config->setQueryCacheImpl($app['app.cache']);
         $config->setProxyDir($app['db.orm.proxies_dir']);
         $config->setProxyNamespace($app['db.orm.proxies_namespace']);
         $config->setAutoGenerateProxyClasses($app['db.orm.auto_generate_proxies']);
         $config->setMetadataDriverImpl($app['orm.config.annotation.driver']);
         return $config;
     });
     $app['orm.em'] = $app->share(function () use($app) {
         return \Doctrine\ORM\EntityManager::create($app['db'], $app['orm.config'], $app['db.event_manager']);
     });
 }
Ejemplo n.º 7
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_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;
 }
Ejemplo n.º 9
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;
 }
Ejemplo n.º 10
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;
 }
Ejemplo n.º 11
0
 public static function _init_manager($connection)
 {
     $settings = static::connection_settings($connection);
     $config = new \Doctrine\ORM\Configuration();
     $cache = static::_init_cache($settings);
     if ($cache) {
         $config->setMetadataCacheImpl($cache);
         $config->setQueryCacheImpl($cache);
         $config->setResultCacheImpl($cache);
     }
     $config->setProxyDir($settings['proxy_dir']);
     $config->setProxyNamespace($settings['proxy_namespace']);
     $config->setAutoGenerateProxyClasses(\Arr::get($settings, 'auto_generate_proxy_classes', false));
     $config->setMetadataDriverImpl(static::_init_metadata($config, $settings));
     $EventManager = new \Doctrine\Common\EventManager();
     static::$_managers[$connection] = \Doctrine\ORM\EntityManager::create($settings['connection'], $config, $EventManager);
     if (!empty($settings['profiling'])) {
         static::$_managers[$connection]->getConnection()->getConfiguration()->setSQLLogger(new Doctrine\Logger($connection));
     }
     // Connection init callback
     if (!empty($settings['init_callback'])) {
         // If array merge combined this numeric array, grab last two array elements as the real callback
         if (is_array($settings['init_callback']) && count($settings['init_callback']) > 2) {
             $settings['init_callback'] = array_slice($settings['init_callback'], -2);
         }
         call_user_func($settings['init_callback'], static::$_managers[$connection], $connection);
     }
 }
Ejemplo n.º 12
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;
 }
Ejemplo n.º 13
0
 protected static function getEntityManager($options)
 {
     $config = new \Doctrine\ORM\Configuration();
     // Handling for class names specified as platform types.
     if ($options['conn']['platform']) {
         $class_obj = new \ReflectionClass($options['conn']['platform']);
         $options['conn']['platform'] = $class_obj->newInstance();
     }
     // Special handling for the utf8mb4 type.
     if ($options['conn']['driver'] == 'pdo_mysql' && $options['conn']['charset'] == 'utf8mb4') {
         $options['conn']['platform'] = new \DF\Doctrine\Platform\MysqlUnicode();
     }
     $metadata_driver = $config->newDefaultAnnotationDriver($options['modelPath']);
     $config->setMetadataDriverImpl($metadata_driver);
     $cache = new \DF\Doctrine\Cache();
     // $cache->setNamespace('doctrine_');
     $config->setMetadataCacheImpl($cache);
     $config->setQueryCacheImpl($cache);
     $config->setResultCacheImpl($cache);
     $config->setProxyDir($options['proxyPath']);
     $config->setProxyNamespace($options['proxyNamespace']);
     if (isset($options['conn']['debug']) && $options['conn']['debug']) {
         $config->setSQLLogger(new \DF\Doctrine\Logger\EchoSQL());
     }
     $config->addFilter('softdelete', '\\DF\\Doctrine\\Filter\\SoftDelete');
     $config->addCustomNumericFunction('RAND', '\\DF\\Doctrine\\Functions\\Rand');
     $evm = new \Doctrine\Common\EventManager();
     $em = \Doctrine\ORM\EntityManager::create($options['conn'], $config, $evm);
     $em->getFilters()->enable("softdelete");
     // Try the connection before rendering the page.
     $em->getConnection()->connect();
     return $em;
 }
 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;
 }
Ejemplo n.º 15
0
 /**
  * @return EntityManager
  */
 public function createEntityManager()
 {
     $appConfig = $this->getConfig();
     $paths = array(DIR . $appConfig['main']['entities']);
     $cache = new \Doctrine\Common\Cache\FilesystemCache(DIR . '/tmp/Cache');
     $config = new \Doctrine\ORM\Configuration();
     $config->setProxyDir(DIR . '/tmp');
     $config->setProxyNamespace('Mev\\Proxies');
     $config->setAutoGenerateProxyClasses(true);
     $driverImpl = $config->newDefaultAnnotationDriver($paths, false);
     $config->setMetadataDriverImpl($driverImpl);
     $config->setMetadataCacheImpl($cache);
     $config->setResultCacheImpl($cache);
     $config->setQueryCacheImpl($cache);
     return EntityManager::create($appConfig['database'], $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;
 }
Ejemplo n.º 17
0
 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);
 }
 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);
 }
Ejemplo n.º 19
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);
 }
Ejemplo n.º 20
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);
 }
 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;
 }
Ejemplo n.º 22
0
 /**
  *
  * @return \Doctrine\ORM\EntityManager
  */
 private static function getEntityManager()
 {
     $sbConfig = new \Sb\Config\Model\Config();
     $cache = new \Doctrine\Common\Cache\ApcCache();
     $cache->setNamespace($sbConfig->getApcCacheNamespace());
     $config = new \Doctrine\ORM\Configuration();
     $driverImpl = $config->newDefaultAnnotationDriver(array("/Sb/Db/Model"));
     $config->setMetadataDriverImpl($driverImpl);
     // settings caches
     $config->setMetadataCacheImpl($cache);
     $config->setQueryCacheImpl($cache);
     $config->setResultCacheImpl($cache);
     $config->setProxyDir("Sb/Db/Proxies");
     $config->setProxyNamespace('Proxies');
     $config->setAutoGenerateProxyClasses(false);
     $connectionOptions = array('driver' => 'pdo_mysql', 'user' => $sbConfig->getDatabaseParams()->user, 'password' => $sbConfig->getDatabaseParams()->password, 'host' => $sbConfig->getDatabaseParams()->host, 'dbname' => $sbConfig->getDatabaseParams()->name);
     // Create EntityManager
     $entityManager = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
     $entityManager->getEventManager()->addEventSubscriber(new \Doctrine\DBAL\Event\Listeners\MysqlSessionInit('utf8', 'utf8_general_ci'));
     return $entityManager;
 }
Ejemplo n.º 23
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);
 }
Ejemplo n.º 24
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);
 }
 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);
 }
Ejemplo n.º 26
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_1a2cf4c9b96587bc4671d8af511d1d8cbc79fd12879d731699d7f2080a252043');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_1a2cf4c9b96587bc4671d8af511d1d8cbc79fd12879d731699d7f2080a252043');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_1a2cf4c9b96587bc4671d8af511d1d8cbc79fd12879d731699d7f2080a252043');
     $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/NetBeansProjects/ShopMoi/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());
     $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;
 }
Ejemplo n.º 27
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_96a523594427540411b93c1691ddcccb');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_96a523594427540411b93c1691ddcccb');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_96a523594427540411b93c1691ddcccb');
     $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/html/oncall/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());
     $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;
 }
Ejemplo n.º 28
0
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_c2c5044e77304f0e0c08f50f79327e6f316080fd1bf0f31c724bdcdb0bf24270');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_c2c5044e77304f0e0c08f50f79327e6f316080fd1bf0f31c724bdcdb0bf24270');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_c2c5044e77304f0e0c08f50f79327e6f316080fd1bf0f31c724bdcdb0bf24270');
     $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/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());
     $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;
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_c014a7a2a484436663ed1eb8caff7f527ac0bbda008a4b80b0958325085b0bb8');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_c014a7a2a484436663ed1eb8caff7f527ac0bbda008a4b80b0958325085b0bb8');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_c014a7a2a484436663ed1eb8caff7f527ac0bbda008a4b80b0958325085b0bb8');
     $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/php-training/sf/ByBus/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());
     $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;
 }
 protected function getDoctrine_Orm_DefaultEntityManagerService()
 {
     $a = new \Doctrine\Common\Cache\ArrayCache();
     $a->setNamespace('sf2orm_default_2c188c6845dda2d5206ef4914b9e7db1481ead05cc5fd1404edeaef506a9d03b');
     $b = new \Doctrine\Common\Cache\ArrayCache();
     $b->setNamespace('sf2orm_default_2c188c6845dda2d5206ef4914b9e7db1481ead05cc5fd1404edeaef506a9d03b');
     $c = new \Doctrine\Common\Cache\ArrayCache();
     $c->setNamespace('sf2orm_default_2c188c6845dda2d5206ef4914b9e7db1481ead05cc5fd1404edeaef506a9d03b');
     $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('/home/sebastian/Strony/MPK/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());
     $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;
 }