Skip to content

Commit d7b201a

Browse files
committed
Use the default reflection service instead of StaticReflectionService
1 parent dcd2260 commit d7b201a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Doctrine/DoctrineHelper.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
use Doctrine\Persistence\Mapping\Driver\MappingDriver;
2525
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
2626
use Doctrine\Persistence\Mapping\MappingException as PersistenceMappingException;
27-
use Doctrine\Persistence\Mapping\StaticReflectionService;
2827
use Symfony\Bundle\MakerBundle\Util\ClassNameDetails;
2928
use Symfony\Component\Uid\Ulid;
3029
use Symfony\Component\Uid\Uuid;
@@ -175,9 +174,6 @@ public function getMetadata(?string $classOrNamespace = null, bool $disconnected
175174
$loaded = $this->isInstanceOf($cmf, AbstractClassMetadataFactory::class) ? $cmf->getLoadedMetadata() : [];
176175
}
177176

178-
// Set the reflection service that was used in the now removed DisconnectedClassMetadataFactory::class
179-
$cmf->setReflectionService(new StaticReflectionService());
180-
181177
foreach ($loaded as $m) {
182178
$cmf->setMetadataFor($m->getName(), $m);
183179
}

0 commit comments

Comments
 (0)