Skip to content

Commit c44f735

Browse files
Only for INHERITANCE_TYPE_SINGLE_TABLE
1 parent 0abc438 commit c44f735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Persisters/Entity/BasicEntityPersister.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ protected function getSelectColumnsSQL(): string
12691269

12701270
$conditionsForInheritance = [];
12711271
if ($eagerEntity->inheritanceType !== ClassMetadata::INHERITANCE_TYPE_NONE) {
1272-
if (count($eagerEntity->subClasses) > 0 || $assoc->isOwningSide()) {
1272+
if (count($eagerEntity->subClasses) > 0 || $assoc->isOwningSide() || $eagerEntity->inheritanceType !== ClassMetadata::INHERITANCE_TYPE_SINGLE_TABLE) {
12731273
continue; // support only not owning side relation with inheritance
12741274
}
12751275

0 commit comments

Comments
 (0)