newsletter = $newsletter; $this->task = $task; } /** * @return NewsletterEntity|null */ public function getNewsletter() { $this->safelyLoadToOneAssociation('newsletter'); return $this->newsletter; } /** * @return ScheduledTaskEntity|null */ public function getTask() { $this->safelyLoadToOneAssociation('task'); return $this->task; } }