/** * Constructor */ public function __construct() { parent::__construct(); $this->children = new ArrayCollection(); }
public function __construct() { parent::__construct(); $this->gallery = new ArrayCollection(); }
protected function getMailingLists(Block $block) { $properties = $block->getProperties(); if (!isset($properties['mailingLists']) || !count($properties['mailingLists'])) { return; } $mailingLists = $this->em->getRepository('OpiferMailingListBundle:MailingList')->findById($properties['mailingLists']); return $mailingLists; }