From 8a14eee67a4b841fed50575fc7371afb3753d38e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sun, 17 Mar 2024 09:38:54 +0100 Subject: [PATCH] Avoid another occurrence of ArrayAccess --- src/UnitOfWork.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UnitOfWork.php b/src/UnitOfWork.php index 48354b8ddab..018c1e788fb 100644 --- a/src/UnitOfWork.php +++ b/src/UnitOfWork.php @@ -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));