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));