Skip to content

Commit

Permalink
Merge pull request #5 from ifxtech/feature/properly-reading-dev-mode
Browse files Browse the repository at this point in the history
correctly reading dev mode env var
  • Loading branch information
ckuran authored Jun 5, 2019
2 parents b2d01e1 + bd5e166 commit 3e88d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DoctrineWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public static function getEntityManager($prefix = 'default')
$credentials = self::getCredentials($prefix);

if (!in_array($prefix, self::$orm)) {
$setup = Setup::createAnnotationMetadataConfiguration([$credentials['entities']], getenv('DEV_MODE'), ROOT . getenv('PROXY_DIR'), null, false);
$isDevMode = 'true' === getenv('DEV_MODE');
$setup = Setup::createAnnotationMetadataConfiguration([$credentials['entities']], $isDevMode, getenv('PROXY_DIR'), null, false);
$setup->setNamingStrategy(new UnderscoreNamingStrategy());

self::$orm[$prefix] = EntityManager::create($credentials, $setup);
}

Expand Down

0 comments on commit 3e88d49

Please sign in to comment.