diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 04fe6aa3..53e8e2ba 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php | |||
@@ -4,6 +4,8 @@ namespace Wallabag\CoreBundle\Repository; | |||
4 | 4 | ||
5 | use Doctrine\ORM\EntityRepository; | 5 | use Doctrine\ORM\EntityRepository; |
6 | use Doctrine\ORM\Tools\Pagination\Paginator; | 6 | use Doctrine\ORM\Tools\Pagination\Paginator; |
7 | use Pagerfanta\Adapter\DoctrineORMAdapter; | ||
8 | use Pagerfanta\Pagerfanta; | ||
7 | 9 | ||
8 | class EntryRepository extends EntityRepository | 10 | class EntryRepository extends EntityRepository |
9 | { | 11 | { |
@@ -114,9 +116,9 @@ class EntryRepository extends EntityRepository | |||
114 | $qb->orderBy('e.updatedAt', $order); | 116 | $qb->orderBy('e.updatedAt', $order); |
115 | } | 117 | } |
116 | 118 | ||
117 | return $qb | 119 | $pagerAdapter = new DoctrineORMAdapter($qb); |
118 | ->getQuery() | 120 | |
119 | ->getResult(); | 121 | return new Pagerfanta($pagerAdapter); |
120 | } | 122 | } |
121 | 123 | ||
122 | /** | 124 | /** |