Permalink
Browse files

Setting development mode only when applicable

  • Loading branch information...
1 parent 0f25f8f commit ca4f56688ddf07645ed3fadd2592d30427185e12 @mariano committed Mar 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 extensions/data/source/Doctrine.php
@@ -8,6 +8,7 @@
namespace li3_doctrine2\extensions\data\source;
+use lithium\core\Environment;
use Doctrine\ORM\Events;
use Doctrine\ORM\Event\LifecycleEventArgs;
use Doctrine\ORM\Event\PreUpdateEventArgs;
@@ -73,7 +74,7 @@ public function __construct(array $config = array()) {
protected function _init() {
$this->configuration = Setup::createAnnotationMetadataConfiguration(
(array) $this->_config['models'],
- true,
+ Environment::is('development'),
$this->_config['proxies']
);
$this->configuration->setProxyNamespace($this->_config['proxyNamespace']);

0 comments on commit ca4f566

Please sign in to comment.