protected function startup() { parent::startup(); $this->types = new ArrayCollection(); $this->labels = new ArrayCollection(); $this->getRoute()->setPublished(FALSE); }
public function startup() { parent::startup(); $this->boxes = new ArrayCollection(); $this->events = new ArrayCollection(); $this->blogs = new ArrayCollection(); $this->created = new \DateTime(); }
protected function startup() { parent::startup(); $name = Strings::random(20); $this->villages = new ArrayCollection(); $this->getRoute()->setPublished(TRUE)->setName($name)->setTitle($name)->setLocalUrl(Strings::webalize($name)); }
/** * @param PageEntity $page * @param $name */ protected function startup() { parent::startup(); $this->items = new ArrayCollection(); }
protected function startup() { parent::startup(); $this->date = new \DateTime(); }