Pause all scheduled tasks when pausing newsletter

[MAILPOET-3481]
This commit is contained in:
Pavel Dohnal
2021-03-17 11:42:01 +01:00
committed by Veljko V
parent 791c3f7a53
commit 2dcf9a8a8f
3 changed files with 84 additions and 3 deletions

View File

@ -79,7 +79,7 @@ class SendingQueueEntity {
private $meta;
/**
* @ORM\OneToOne(targetEntity="MailPoet\Entities\ScheduledTaskEntity")
* @ORM\OneToOne(targetEntity="MailPoet\Entities\ScheduledTaskEntity", fetch="EAGER")
* @var ScheduledTaskEntity|null
*/
private $task;