Преглед изворни кода

merged branch craue/patch-14 (PR #2354)

Commits
-------

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

Discussion
----------

fixed "using $this when not in object context" error for 2.0 branch (replaces #2353)
Fabien Potencier пре 13 година
родитељ
комит
d867f22b46
1 измењених фајлова са 1 додато и 1 уклоњено
  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');