Improve NewslettersResponseBuilder
[MAILPOET-2503]
This commit is contained in:
committed by
Jack Kitterhing
parent
65c8ddf6c2
commit
4fe760f4b1
@@ -125,6 +125,12 @@ class NewsletterEntity {
|
||||
*/
|
||||
private $parent;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="MailPoet\Entities\NewsletterEntity", mappedBy="parent")
|
||||
* @var NewsletterEntity[]|ArrayCollection
|
||||
*/
|
||||
private $children;
|
||||
|
||||
/**
|
||||
* @ORM\OneToMany(targetEntity="MailPoet\Entities\NewsletterSegmentEntity", mappedBy="newsletter")
|
||||
* @var NewsletterSegmentEntity[]|ArrayCollection
|
||||
@@ -144,6 +150,7 @@ class NewsletterEntity {
|
||||
private $queues;
|
||||
|
||||
public function __construct() {
|
||||
$this->children = new ArrayCollection();
|
||||
$this->newsletterSegments = new ArrayCollection();
|
||||
$this->options = new ArrayCollection();
|
||||
$this->queues = new ArrayCollection();
|
||||
@@ -353,6 +360,13 @@ class NewsletterEntity {
|
||||
$this->parent = $parent;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NewsletterEntity[]|ArrayCollection
|
||||
*/
|
||||
public function getChildren() {
|
||||
return $this->children;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return NewsletterSegmentEntity[]|ArrayCollection
|
||||
*/
|
||||
|
Reference in New Issue
Block a user