From f85d220c19872dd7e9199fd150060555584a2886 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') 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 $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