Skip to content

Commit

Permalink
[ui-module] Migrate UI module from separate repo (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 13, 2024
1 parent 75ff910 commit b8c4a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Subscribers/EntityDiscriminator.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class EntityDiscriminator implements Common\EventSubscriber
{

private const INHERITANCE_TYPE = 'SINGLE_TABLE';
private const INHERITANCE_TYPE = ['SINGLE_TABLE', 'JOINED'];

/** @var array<string, string> */
private static array $discriminators = [];
Expand Down Expand Up @@ -71,7 +71,7 @@ public function loadClassMetadata(ORM\Event\LoadClassMetadataEventArgs $event):

if (
$inheritanceType instanceof ORM\Mapping\InheritanceType
&& $inheritanceType->value === self::INHERITANCE_TYPE
&& in_array($inheritanceType->value, self::INHERITANCE_TYPE, true)
&& $discriminatorMapExtension !== []
) {
$extendedDiscriminatorMap = $discriminatorMap?->value ?? [];
Expand Down

0 comments on commit b8c4a8e

Please sign in to comment.