Parcourir la source

[DoctrineBundle] tweaked previous merge

Fabien Potencier il y a 13 ans
Parent
commit
87416b4756
1 fichiers modifiés avec 5 ajouts et 5 suppressions
  1. 5 5
      src/Symfony/Bundle/DoctrineBundle/DoctrineBundle.php

+ 5 - 5
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;