diff options
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) |