newsletter = $newsletter; $this->segment = $segment; } /** * @return NewsletterEntity|null */ public function getNewsletter() { $this->safelyLoadToOneAssociation('newsletter'); return $this->newsletter; } /** * @return SegmentEntity|null */ public function getSegment() { $this->safelyLoadToOneAssociation('segment'); return $this->segment; } }