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

@@ -45,7 +45,7 @@ class Mailer {
}
public function getProcessingMethod() {
return ($this->mailer->mailer_config['method'] === MailerFactory::METHOD_MAILPOET) ?
return ($this->mailer->mailerConfig['method'] === MailerFactory::METHOD_MAILPOET) ?
'bulk' :
'individual';
}
@@ -58,7 +58,7 @@ class Mailer {
if ($this->getProcessingMethod() === 'individual') {
throw new \LogicException('Trying to send a batch with individual processing method');
}
return $this->mailer->mailer_instance->send(
return $this->mailer->mailerInstance->send(
$preparedNewsletters,
$preparedSubscribers,
$extraParams
@@ -69,7 +69,7 @@ class Mailer {
if ($this->getProcessingMethod() === 'bulk') {
throw new \LogicException('Trying to send an individual email with a bulk processing method');
}
return $this->mailer->mailer_instance->send(
return $this->mailer->mailerInstance->send(
$preparedNewsletter,
$preparedSubscriber,
$extraParams

View File

@@ -40,11 +40,11 @@ class StatsNotificationsRepository extends Repository {
->addSelect('tasks')
->addSelect('n')
->addOrderBy('tasks.priority')
->addOrderBy('tasks.updated_at')
->where('tasks.deleted_at IS NULL')
->addOrderBy('tasks.updatedAt')
->where('tasks.deletedAt IS NULL')
->andWhere('tasks.status = :status')
->setParameter('status', ScheduledTaskEntity::STATUS_SCHEDULED)
->andWhere('tasks.scheduled_at < :date')
->andWhere('tasks.scheduledAt < :date')
->setParameter('date', $date)
->andWhere('tasks.type = :workerType')
->setParameter('workerType', Worker::TASK_TYPE);