コード例 #1
0
 protected function startup()
 {
     parent::startup();
     $this->types = new ArrayCollection();
     $this->labels = new ArrayCollection();
     $this->getRoute()->setPublished(FALSE);
 }
コード例 #2
0
 public function startup()
 {
     parent::startup();
     $this->boxes = new ArrayCollection();
     $this->events = new ArrayCollection();
     $this->blogs = new ArrayCollection();
     $this->created = new \DateTime();
 }
コード例 #3
0
ファイル: DobrovolnikEntity.php プロジェクト: svobodni/web
 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));
 }
コード例 #4
0
 /**
  * @param PageEntity $page
  * @param $name
  */
 protected function startup()
 {
     parent::startup();
     $this->items = new ArrayCollection();
 }
コード例 #5
0
 protected function startup()
 {
     parent::startup();
     $this->date = new \DateTime();
 }