diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php index 0596e9746..e0eacfa53 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php @@ -311,6 +311,7 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory if ($metadata->discriminatorValue || ! $metadata->discriminatorMap || $metadata->isMappedSuperclass + || ! $metadata->reflClass || $metadata->reflClass->isAbstract() ) { return;