Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Setting development mode only when applicable

  • Loading branch information...
commit ca4f56688ddf07645ed3fadd2592d30427185e12 1 parent 0f25f8f
@mariano authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  extensions/data/source/Doctrine.php
View
3  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']);
Please sign in to comment.
Something went wrong with that request. Please try again.