diff --git a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php index ad1384bb92..4608e2d60e 100644 --- a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php +++ b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php @@ -79,13 +79,11 @@ class DoctrineBundle extends Bundle } clearstatcache($file); - - if (!file_exists($file)) { - throw new \RuntimeException(sprintf('The proxy file "%s" does not exist. If you still have objects serialized in the session, you need to clear the session manually.', $file)); - } } - require $file; + if (file_exists($file)) { + require $file; + } } }; spl_autoload_register($this->autoloader);