X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FRepository%2FEntryRepository.php;fp=src%2FWallabag%2FCoreBundle%2FRepository%2FEntryRepository.php;h=6107e19ec65244f32efe322cfc51e2f533ae3795;hb=f85d220c19872dd7e9199fd150060555584a2886;hp=a26de0a83a5d7e8ea3282d55f4cb999242f4e025;hpb=09ef25c3c3882db94b3941f3ba33ebc78b5dbe4d;p=github%2Fwallabag%2Fwallabag.git 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)