|
@@ -31,8 +31,8 @@ |
|
|
block discarded – undo |
|
31
|
31
|
public function paginate(PaginationParamsInterface $paginationParams, $repository) |
|
32
|
32
|
{ |
|
33
|
33
|
$query = $repository |
|
34
|
|
- ->setFirstResult($paginationParams->getCurrentPage()) |
|
35
|
|
- ->setMaxResults($paginationParams->getLimit()); |
|
|
34
|
+ ->setFirstResult($paginationParams->getCurrentPage()) |
|
|
35
|
+ ->setMaxResults($paginationParams->getLimit()); |
|
36
|
36
|
|
|
37
|
37
|
return new Paginator($query, $fetchJoinCollection = true); |
|
38
|
38
|
} |
Please login to merge, or discard this patch.