Forráskód Böngészése

fixed "using $this when not in object context" error for 2.0 branch (replaces #2353)

Christian Raue 13 éve
szülő
commit
2e5869db00
1 módosított fájl, 1 hozzáadás és 1 törlés
  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) && $this->container->getParameter('kernel.debug')) {
+                    if (!file_exists($file) && $container->getParameter('kernel.debug')) {
                         $originalClassName = substr($className, 0, -5);
                         $registry = $container->get('doctrine');