aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index 553ad6ab..b9532fa2 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -125,9 +125,7 @@ class EntryRepository extends EntityRepository
125 { 125 {
126 return $this 126 return $this
127 ->getBuilderByUser($userId) 127 ->getBuilderByUser($userId)
128 ->leftJoin('e.tags', 't') 128 ->andWhere('size(e.tags) = 0');
129 ->groupBy('e.id')
130 ->having('count(t.id) = 0');
131 } 129 }
132 130
133 /** 131 /**
@@ -173,7 +171,7 @@ class EntryRepository extends EntityRepository
173 $qb->orderBy('e.updatedAt', $order); 171 $qb->orderBy('e.updatedAt', $order);
174 } 172 }
175 173
176 $pagerAdapter = new DoctrineORMAdapter($qb); 174 $pagerAdapter = new DoctrineORMAdapter($qb, true, false);
177 175
178 return new Pagerfanta($pagerAdapter); 176 return new Pagerfanta($pagerAdapter);
179 } 177 }