Skip to content

Commit

Permalink
Removes non architecture compliant code
Browse files Browse the repository at this point in the history
  • Loading branch information
gquemener committed May 13, 2020
1 parent cad2b85 commit f93336e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit f93336e

Please sign in to comment.