Skip to content

Commit

Permalink
Merge pull request #11370 from greg0ire/forgotten-array-access
Browse files Browse the repository at this point in the history
Avoid another occurrence of ArrayAccess
  • Loading branch information
greg0ire authored Mar 17, 2024
2 parents c5315f8 + 8a14eee commit 7178b9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UnitOfWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ private function eagerLoadCollections(array $collections, ToManyInverseSideMappi
$data = $this->getOriginalEntityData($targetValue);
$id = [];
foreach ($targetClass->associationMappings[$mappedBy]->joinColumns as $joinColumn) {
$id[] = $data[$joinColumn['name']];
$id[] = $data[$joinColumn->name];
}
} else {
$id = $this->identifierFlattener->flattenIdentifier($class, $class->getIdentifierValues($sourceEntity));
Expand Down

0 comments on commit 7178b9d

Please sign in to comment.