Преглед на файлове

[DoctrineBundle] tweaked previous merge

Fabien Potencier преди 13 години
родител
ревизия
87416b4756
променени са 1 файла, в които са добавени 5 реда и са изтрити 5 реда
  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;