From ed14acc94799016be0724a39601a0e5bea651fde Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Thu, 11 Oct 2012 13:41:15 +0300 Subject: [PATCH] fixed parameter --- DoctrineMongoDBBundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DoctrineMongoDBBundle.php b/DoctrineMongoDBBundle.php index 2ea46613..80e89980 100644 --- a/DoctrineMongoDBBundle.php +++ b/DoctrineMongoDBBundle.php @@ -69,7 +69,7 @@ public function boot() $fileName = str_replace('\\', '', substr($class, strlen($namespace) +1)); $file = $dir.DIRECTORY_SEPARATOR.$fileName.'.php'; - if (!is_file($file) && $container->getParameter('kernel.debug')) { + if (!is_file($file) && $container->getParameter('doctrine_mongodb.odm.auto_generate_proxy_classes')) { $originalClassName = ClassUtils::getRealClass($class); $registry = $container->get('doctrine_mongodb');