Commit cb382351 authored by Karamel's avatar Karamel
Browse files

Explicitely set the directory for Doctrine proxies to ease deployment in production.

parent 383a26f2
# Keep this directory to be able to generate proxies, but ignore them.
*
!.gitignore
......@@ -62,7 +62,8 @@ class DoctrineDAO implements DAO
'host' => $dbInfo['host'],
'driver' => $driver,
'charset'=> 'utf8');
$setup = Setup::createAnnotationMetadataConfiguration($path, $isDevMode);
$setup = Setup::createAnnotationMetadataConfiguration($path, $isDevMode,
__DIR__ . '/../../../generated/');
$entityManager = EntityManager::create($dbParams, $setup);
$entityManager2 = EntityManager::create($dbParams, $setup);
$this->em = $entityManager;
......
Supports Markdown
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