From 6c42fbf04372f04821a50402abd91b68d52856e7 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Fri, 12 Oct 2018 15:01:19 +0200 Subject: Fix tests --- src/Wallabag/CoreBundle/Repository/EntryRepository.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php') diff --git a/src/Wallabag/CoreBundle/Repository/EntryRepository.php b/src/Wallabag/CoreBundle/Repository/EntryRepository.php index 7fe090be..71ed7b6d 100644 --- a/src/Wallabag/CoreBundle/Repository/EntryRepository.php +++ b/src/Wallabag/CoreBundle/Repository/EntryRepository.php @@ -460,6 +460,11 @@ class EntryRepository extends EntityRepository $qb->andWhere('e.isStarred = true'); } + if ('untagged' === $status) { + $qb->leftJoin('e.tags', 't'); + $qb->andWhere('t.id is null'); + } + return $qb->andWhere('e.id >= :rand') ->setParameter('rand', rand(0, $max)) ->setMaxResults(1) -- cgit v1.2.3