Bläddra i källkod

[DoctrineBundle] made the previous fix only available in the development environment

Fabien Potencier 13 år sedan
förälder
incheckning
6295e55329
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php

@@ -49,7 +49,7 @@ class DoctrineBundle extends Bundle
                     $className = substr($class, strlen($namespace) +1);
                     $file = $dir.DIRECTORY_SEPARATOR.$className.'.php';
 
-                    if (!file_exists($file)) {
+                    if (!file_exists($file) && $this->container->getParameter('kernel.debug')) {
                         $originalClassName = substr($className, 0, -5);
                         $registry = $container->get('doctrine');