mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: correct count in DQL
This commit is contained in:
parent
2292057c73
commit
aca4c9f23d
@ -19,16 +19,16 @@ class DomainPurchaseRepository extends ServiceEntityRepository
|
||||
public function countSuccessDomainPurchase(): int
|
||||
{
|
||||
return $this->createQueryBuilder('dp')
|
||||
->select('COUNT(*)')
|
||||
->where('dp.domainOrderedAt != NULL')
|
||||
->select('COUNT(dp)')
|
||||
->where('dp.domainOrderedAt not NULL')
|
||||
->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
|
||||
public function countFailDomainPurchase(): int
|
||||
{
|
||||
return $this->createQueryBuilder('dp')
|
||||
->select('COUNT(*)')
|
||||
->where('dp.domainOrderedAt == NULL')
|
||||
->select('COUNT(dp)')
|
||||
->where('dp.domainOrderedAt is NULL')
|
||||
->getQuery()->getSingleScalarResult();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user