Skip to content

Commit

Permalink
skip embedded class from schema listener (#189)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Sainthillier <[email protected]>
  • Loading branch information
DamienHarper and guillaume-sainthillier authored Dec 19, 2023
1 parent 07235c1 commit bdfbaef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(DoctrineProvider $provider)
public function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs): void
{
$classMetadata = $eventArgs->getClassMetadata();
if (!$classMetadata->isInheritanceTypeSingleTable() || $classMetadata->getName() === $classMetadata->rootEntityName) {
if (!$classMetadata->isEmbeddedClass && (!$classMetadata->isInheritanceTypeSingleTable() || $classMetadata->getName() === $classMetadata->rootEntityName)) {
$schemaManager = new SchemaManager($this->provider);
$storageService = $this->provider->getStorageServiceForEntity($classMetadata->getName());

Expand Down

0 comments on commit bdfbaef

Please sign in to comment.