Пример #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->children = new ArrayCollection();
 }
Пример #2
0
 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;
 }