Handle nullable task on sending queue

[MAILPOET-2818]
This commit is contained in:
Rostislav Wolny
2020-04-06 16:53:42 +02:00
committed by Veljko V
parent 63a2bed8bf
commit edddaa789b
2 changed files with 6 additions and 4 deletions

View File

@ -73,7 +73,7 @@ class SendingQueueEntity {
/**
* @ORM\OneToOne(targetEntity="MailPoet\Entities\ScheduledTaskEntity")
* @var ScheduledTaskEntity
* @var ScheduledTaskEntity|null
*/
private $task;
@ -182,7 +182,7 @@ class SendingQueueEntity {
}
/**
* @return ScheduledTaskEntity
* @return ScheduledTaskEntity|null
*/
public function getTask() {
$this->safelyLoadToOneAssociation('task');