[DoctrineBundle] made the previous fix only available in the development environment
This commit is contained in:
parent
87416b4756
commit
6295e55329
@ -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');
|
||||
|
||||
|
Reference in New Issue
Block a user