mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 09:45:29 +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
|
public function countSuccessDomainPurchase(): int
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('dp')
|
return $this->createQueryBuilder('dp')
|
||||||
->select('COUNT(*)')
|
->select('COUNT(dp)')
|
||||||
->where('dp.domainOrderedAt != NULL')
|
->where('dp.domainOrderedAt not NULL')
|
||||||
->getQuery()->getSingleScalarResult();
|
->getQuery()->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function countFailDomainPurchase(): int
|
public function countFailDomainPurchase(): int
|
||||||
{
|
{
|
||||||
return $this->createQueryBuilder('dp')
|
return $this->createQueryBuilder('dp')
|
||||||
->select('COUNT(*)')
|
->select('COUNT(dp)')
|
||||||
->where('dp.domainOrderedAt == NULL')
|
->where('dp.domainOrderedAt is NULL')
|
||||||
->getQuery()->getSingleScalarResult();
|
->getQuery()->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user