Procházet zdrojové kódy

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

Christian Raue před 13 roky
rodič
revize
2e5869db00

+ 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');