diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index df60c1beb..bd1b484cf 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -345,7 +345,8 @@ class AnnotationDriver implements Driver require_once $item->getPathName(); } $declared = array_diff(get_declared_classes(), $declared); - + + $classes = array(); foreach ($declared as $className) { if ( ! $this->isTransient($className)) { $classes[] = $className;