Handle nullable task on sending queue
[MAILPOET-2818]
This commit is contained in:
committed by
Veljko V
parent
63a2bed8bf
commit
edddaa789b
@ -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');
|
||||
|
Reference in New Issue
Block a user