MAde small fix to model loading that caused a warning to be raised.
This commit is contained in:
parent
f0b0100987
commit
724cc2b1e7
1 changed files with 1 additions and 2 deletions
|
@ -527,9 +527,8 @@ final class Doctrine
|
||||||
$modelFiles = array_keys(self::$_loadedModelFiles);
|
$modelFiles = array_keys(self::$_loadedModelFiles);
|
||||||
|
|
||||||
foreach ($modelFiles as $name) {
|
foreach ($modelFiles as $name) {
|
||||||
|
$declaredBefore = get_declared_classes();
|
||||||
if (class_exists($name)) {
|
if (class_exists($name)) {
|
||||||
$declaredBefore = get_declared_classes();
|
|
||||||
|
|
||||||
if (self::isValidModelClass($name) && !in_array($name, $loadedModels)) {
|
if (self::isValidModelClass($name) && !in_array($name, $loadedModels)) {
|
||||||
$loadedModels[] = $name;
|
$loadedModels[] = $name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue