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