diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-10-12 15:01:19 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2018-10-12 15:01:19 +0200 |
commit | 6c42fbf04372f04821a50402abd91b68d52856e7 (patch) | |
tree | 9e5527aeda9dd566658c23fa28be97bb0ec9f0d2 /src/Wallabag/CoreBundle/Repository/EntryRepository.php | |
parent | ee360905ce41c6f28c34419f18e50cd87ae387e5 (diff) | |
download | wallabag-6c42fbf04372f04821a50402abd91b68d52856e7.tar.gz wallabag-6c42fbf04372f04821a50402abd91b68d52856e7.tar.zst wallabag-6c42fbf04372f04821a50402abd91b68d52856e7.zip |
Fix tests
Diffstat (limited to 'src/Wallabag/CoreBundle/Repository/EntryRepository.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Repository/EntryRepository.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
460 | $qb->andWhere('e.isStarred = true'); | 460 | $qb->andWhere('e.isStarred = true'); |
461 | } | 461 | } |
462 | 462 | ||
463 | if ('untagged' === $status) { | ||
464 | $qb->leftJoin('e.tags', 't'); | ||
465 | $qb->andWhere('t.id is null'); | ||
466 | } | ||
467 | |||
463 | return $qb->andWhere('e.id >= :rand') | 468 | return $qb->andWhere('e.id >= :rand') |
464 | ->setParameter('rand', rand(0, $max)) | 469 | ->setParameter('rand', rand(0, $max)) |
465 | ->setMaxResults(1) | 470 | ->setMaxResults(1) |