aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository/EntryRepository.php
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2018-10-12 15:01:19 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2019-01-19 21:09:33 +0100
commitf85d220c19872dd7e9199fd150060555584a2886 (patch)
treeab9aa6570ddaa56e5f04c061b1694f8d6ec64c7f /src/Wallabag/CoreBundle/Repository/EntryRepository.php
parent09ef25c3c3882db94b3941f3ba33ebc78b5dbe4d (diff)
downloadwallabag-f85d220c19872dd7e9199fd150060555584a2886.tar.gz
wallabag-f85d220c19872dd7e9199fd150060555584a2886.tar.zst
wallabag-f85d220c19872dd7e9199fd150060555584a2886.zip
Fix tests
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r--src/Wallabag/CoreBundle/Repository/EntryRepository.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
index a26de0a8..6107e19e 100644
--- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php
+++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php
@@ -464,6 +464,11 @@ class EntryRepository extends EntityRepository
464 $qb->andWhere('e.isStarred = true'); 464 $qb->andWhere('e.isStarred = true');
465 } 465 }
466 466
467 if ('untagged' === $status) {
468 $qb->leftJoin('e.tags', 't');
469 $qb->andWhere('t.id is null');
470 }
471
467 return $qb->andWhere('e.id >= :rand') 472 return $qb->andWhere('e.id >= :rand')
468 ->setParameter('rand', rand(0, $max)) 473 ->setParameter('rand', rand(0, $max))
469 ->setMaxResults(1) 474 ->setMaxResults(1)