diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index bcb023e6e26..e4dce91cc42 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -25,7 +25,6 @@ use RuntimeException; use Doctrine\DBAL\Types\Type; use Doctrine\DBAL\Platforms\AbstractPlatform; -use ReflectionClass; use Doctrine\Common\Persistence\Mapping\ClassMetadata; use Doctrine\ORM\Cache\CacheException; @@ -2816,11 +2815,6 @@ public function addDiscriminatorMapClass($name, $className) throw MappingException::invalidClassInDiscriminatorMap($className, $this->name); } - $refl = new ReflectionClass($className); - if ($refl->name !== $className) { - throw MappingException::invalidClassInDiscriminatorMap($className, $this->name); - } - if (is_subclass_of($className, $this->name) && ! in_array($className, $this->subClasses)) { $this->subClasses[] = $className; }