Commit 724cc2b1 authored by wernerm's avatar wernerm

MAde small fix to model loading that caused a warning to be raised.

parent f0b01009
......@@ -527,9 +527,8 @@ final class Doctrine
$modelFiles = array_keys(self::$_loadedModelFiles);
foreach ($modelFiles as $name) {
$declaredBefore = get_declared_classes();
if (class_exists($name)) {
$declaredBefore = get_declared_classes();
if (self::isValidModelClass($name) && !in_array($name, $loadedModels)) {
$loadedModels[] = $name;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment