diff --git a/Mapping/ClassMetadataFactory.php b/Mapping/ClassMetadataFactory.php index c84cfd2d7..a04a16ab5 100644 --- a/Mapping/ClassMetadataFactory.php +++ b/Mapping/ClassMetadataFactory.php @@ -5,7 +5,6 @@ use Doctrine\ORM\Id\AbstractIdGenerator; use Doctrine\ORM\Mapping\ClassMetadata; use Doctrine\ORM\Mapping\ClassMetadataFactory as BaseClassMetadataFactory; -use Doctrine\ORM\Mapping\ClassMetadataInfo; use function assert; @@ -18,10 +17,6 @@ protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonS { parent::doLoadMetadata($class, $parent, $rootEntityFound, $nonSuperclassParents); - if (! $class instanceof ClassMetadataInfo) { - return; - } - $customGeneratorDefinition = $class->customGeneratorDefinition; if (! isset($customGeneratorDefinition['instance'])) {