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