Convert Doctrine specific code to camel case
[MAILPOET-1796]
This commit is contained in:
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user