Skip to content

Commit

Permalink
[DoctrineBundle] made the previous fix only available in the developm…
Browse files Browse the repository at this point in the history
…ent environment
  • Loading branch information
fabpot committed Sep 30, 2011
1 parent 87416b4 commit 6295e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php
Expand Up @@ -49,7 +49,7 @@ class_exists('Doctrine\ORM\Mapping\Driver\AnnotationDriver');
$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');

Expand Down

0 comments on commit 6295e55

Please sign in to comment.