mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: remove distinct from dql
This commit is contained in:
parent
4c3820d70e
commit
4e40f400b6
@ -55,17 +55,15 @@ class DomainRepository extends ServiceEntityRepository
|
||||
public function getMyTrackedDomains(User $user): array
|
||||
{
|
||||
return $this->createQueryBuilder('d')
|
||||
->select('d')
|
||||
->distinct()
|
||||
->join('d.watchLists', 'w')
|
||||
->join('d.events', 'de')
|
||||
->where('w.user = :user')
|
||||
->andWhere('d.deleted = false')
|
||||
->andWhere("de.action = 'expiration'")
|
||||
->andWhere('de.deleted = false')
|
||||
->getQuery()
|
||||
->setParameter('user', $user)
|
||||
->execute();
|
||||
->getQuery()
|
||||
->getResult();
|
||||
}
|
||||
|
||||
// /**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user