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