Fixed query to fetch URL to hash

This commit is contained in:
Nicolas Lœuillet 2020-12-22 14:58:07 +01:00
parent d6869fdd2f
commit 5857031262

View file

@ -378,7 +378,9 @@ class EntryRepository extends EntityRepository
{
return $this->createQueryBuilder('e')
->where('e.hashedUrl = :empty')->setParameter('empty', '')
->orWhere('e.hashedUrl is null')
->andWhere('e.user = :user_id')->setParameter('user_id', $userId)
->andWhere('e.url is not null')
->getQuery()
->getResult();
}