diff --git a/Doctrine/Orm/DataProvider.php b/Doctrine/Orm/DataProvider.php index 7f93799bca5..7d92aa17ea3 100644 --- a/Doctrine/Orm/DataProvider.php +++ b/Doctrine/Orm/DataProvider.php @@ -127,7 +127,7 @@ public function getCollection(ResourceInterface $resource, Request $request) $mapping = $classMetaData->associationMappings[$association]; if (ClassMetadataInfo::FETCH_EAGER === $mapping['fetch']) { - $queryBuilder->join('o.'.$association, 'a'.$i); + $queryBuilder->leftJoin('o.'.$association, 'a'.$i); $queryBuilder->addSelect('a'.$i); } }