Skip to content

Commit 0bd49ab

Browse files
authored
Comment the re-hydration
1 parent cce3781 commit 0bd49ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Bridge/Doctrine/Orm/Extension/EagerLoadingExtension.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ private function joinRelations(QueryBuilder $queryBuilder, QueryNameGeneratorInt
232232

233233
$this->joinRelations($queryBuilder, $queryNameGenerator, $mapping['targetEntity'], $forceEager, $fetchPartial, $associationAlias, $options, $normalizationContext, 'leftJoin' === $method, $joinCount, $currentDepth);
234234
}
235-
235+
236+
// result is discarded (this is just re-hydrating the collections) see http://ocramius.github.io/blog/doctrine-orm-optimization-hydration/
236237
$queryBuilder->getQuery()->getResult();
237238
}
238239

0 commit comments

Comments
 (0)