1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-10-20 19:52:09 +00:00

Fix tests

This commit is contained in:
Jeremy Benoist 2018-10-12 15:01:19 +02:00
parent 09ef25c3c3
commit f85d220c19
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 94 additions and 99 deletions

View file

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