Skip to content

Commit

Permalink
Fix embedded list
Browse files Browse the repository at this point in the history
  • Loading branch information
kip-mmainchain committed Dec 6, 2021
1 parent 2fd230f commit fe18164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper/EmbeddedListHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function guessDefaultFilter(string $entityFqcn, string $parentEntityPrope
$parentEntityFqcn = ClassUtils::getRealClass($parentEntityFqcn);
foreach ($entityAssociations as $assoc) {
// If association matches embeddedList relation
if (is_subclass_of($parentEntityFqcn, $assoc['targetEntity']) && $parentEntityProperty === $assoc['inversedBy']) {
if (($parentEntityFqcn === $assoc['targetEntity'] || is_subclass_of($parentEntityFqcn, $assoc['targetEntity'])) && $parentEntityProperty === $assoc['inversedBy']) {
// OneToMany association
if (isset($assoc['joinColumns']) && 1 === \count($assoc['joinColumns'])) {
$assocFieldPart = 'entity.'.$assoc['fieldName'];
Expand Down

0 comments on commit fe18164

Please sign in to comment.