1
0
mirror of synced 2024-12-05 03:06:05 +03:00

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

This commit is contained in:
Benjamin Eberlei 2010-04-12 21:56:55 +02:00
parent 317e84d8d7
commit 43dc7eb065
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@ $classLoader->register();
$config = new \Doctrine\ORM\Configuration();
$config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache);
$driverImpl = $config->newDefaultAnnotationDriver(array(__DIR__."/Entities"));
$config->setMetadataDriverImpl($driverImpl);
$config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('Proxies');

View File

@ -30,11 +30,14 @@ $proxiesClassLoader->register();
$config = new Configuration;
$cache = new ApcCache;
$config->setMetadataCacheImpl($cache);
$driverImpl = $config->newDefaultAnnotationDriver(array(__DIR__."/Entities"));
$config->setMetadataDriverImpl($driverImpl);
$config->setQueryCacheImpl($cache);
// Proxy configuration
$config->setProxyDir(__DIR__ . '/Proxies');
$config->setProxyNamespace('Proxies');
$config->setMetadataCacheImpl(new \Doctrine\Common\Cache\ArrayCache);
// Database connection information
$connectionOptions = array(