From 46f2299057a5c5179100f09bda69fac48d8620f2 Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Sat, 8 Oct 2011 14:23:52 +0300 Subject: [PATCH] fixed "using $this when not in object context" error --- src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php index 078115c8b6459..68d94f5df4ab8 100644 --- a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php +++ b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php @@ -49,7 +49,7 @@ class_exists('Doctrine\ORM\Mapping\Driver\AnnotationDriver'); $className = substr($class, strlen($namespace) +1); $file = $dir.DIRECTORY_SEPARATOR.$className.'.php'; - if (!is_file($file) && $this->container->getParameter('kernel.debug')) { + if (!is_file($file) && $container->getParameter('kernel.debug')) { $originalClassName = substr($className, 0, -5); $registry = $container->get('doctrine');