We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d8098bd + 3d7bcdc commit 6cedcd4Copy full SHA for 6cedcd4
src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber/UsesPaginator.php
@@ -37,6 +37,8 @@ public function items(ItemsEvent $event)
37
$fetchJoinCollection = true;
38
if ($event->target->hasHint(self::HINT_FETCH_JOIN_COLLECTION)) {
39
$fetchJoinCollection = $event->target->getHint(self::HINT_FETCH_JOIN_COLLECTION);
40
+ } else if (isset($event->options['distinct'])) {
41
+ $fetchJoinCollection = $event->options['distinct'];
42
}
43
44
$paginator = new Paginator($event->target, $fetchJoinCollection);
0 commit comments