Convert Doctrine specific code to camel case

[MAILPOET-1796]
This commit is contained in:
Jan Jakeš
2020-01-09 10:15:17 +01:00
committed by Jan Jakeš
parent 71d623f915
commit fbcaeaadbc
13 changed files with 26 additions and 26 deletions

View File

@ -25,7 +25,7 @@ class NewsletterStatisticsRepository extends Repository {
->createQueryBuilder('n')
->join('n.queues', 'q')
->join('q.task', 't')
->select('SUM(q.count_processed)')
->select('SUM(q.countProcessed)')
->where('t.status = :status')
->setParameter('status', ScheduledTaskEntity::STATUS_COMPLETED)
->andWhere('q.newsletter = :newsletter')
@ -78,7 +78,7 @@ class NewsletterStatisticsRepository extends Repository {
try {
$qb = $this->entityManager
->createQueryBuilder();
return $qb->select('COUNT(DISTINCT stats.subscriber_id) as cnt')
return $qb->select('COUNT(DISTINCT stats.subscriberId) as cnt')
->from($statisticsEntityName, 'stats')
->where('stats.newsletter = :newsletter')
->setParameter('newsletter', $newsletter)