From 87416b4756f6d28683af46a84321e574653b63e5 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 30 Sep 2011 18:08:38 +0200 Subject: [PATCH] [DoctrineBundle] tweaked previous merge --- src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php index e595d3fbed..8acedece6a 100644 --- a/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php +++ b/src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php @@ -68,12 +68,12 @@ 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)); + 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;