Commit 43dc7eb0 authored by Benjamin Eberlei's avatar Benjamin Eberlei

DDC-510 - Fix sandbox to work with new annotations metadata changes

parent 317e84d8
...@@ -10,6 +10,9 @@ $classLoader->register(); ...@@ -10,6 +10,9 @@ $classLoader->register();
$config = new \Doctrine\ORM\Configuration(); $config = new \Doctrine\ORM\Configuration();
$config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache); $config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache);
$driverImpl = $config->newDefaultAnnotationDriver(array(__DIR__."/Entities"));
$config->setMetadataDriverImpl($driverImpl);
$config->setProxyDir(__DIR__ . '/Proxies'); $config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('Proxies'); $config->setProxyNamespace('Proxies');
......
...@@ -30,11 +30,14 @@ $proxiesClassLoader->register(); ...@@ -30,11 +30,14 @@ $proxiesClassLoader->register();
$config = new Configuration; $config = new Configuration;
$cache = new ApcCache; $cache = new ApcCache;
$config->setMetadataCacheImpl($cache); $config->setMetadataCacheImpl($cache);
$driverImpl = $config->newDefaultAnnotationDriver(array(__DIR__."/Entities"));
$config->setMetadataDriverImpl($driverImpl);
$config->setQueryCacheImpl($cache); $config->setQueryCacheImpl($cache);
// Proxy configuration // Proxy configuration
$config->setProxyDir(__DIR__ . '/Proxies'); $config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('Proxies'); $config->setProxyNamespace('Proxies');
$config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache);
// Database connection information // Database connection information
$connectionOptions = array( $connectionOptions = array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment