コード例 #1
0
ファイル: AbstractItemEntity.php プロジェクト: svobodni/web
 protected function startup()
 {
     parent::startup();
     $this->position = time();
     $this->route->setLocalUrl(Strings::webalize(Strings::random()));
     $this->getRoute()->setPublished(TRUE);
 }
コード例 #2
0
ファイル: TagEntity.php プロジェクト: svobodni/web
 protected function startup()
 {
     parent::startup();
     $this->route->published = TRUE;
     $this->setName('');
 }
コード例 #3
0
 protected function startup()
 {
     parent::startup();
     $this->categories = new ArrayCollection();
 }
コード例 #4
0
ファイル: CommentEntity.php プロジェクト: svobodni/web
 protected function startup()
 {
     parent::startup();
     $this->setName(Strings::random(20));
     $this->route->setPublished(TRUE);
 }
コード例 #5
0
ファイル: CartEntity.php プロジェクト: venne/catalog-module
 protected function startup()
 {
     parent::startup();
     $this->setName('Cart')->getRoute()->setPublished(TRUE);
 }
コード例 #6
0
 protected function startup()
 {
     parent::startup();
     $this->children = new ArrayCollection();
 }
コード例 #7
0
ファイル: FeedEntity.php プロジェクト: venne/catalog-module
 protected function startup()
 {
     parent::startup();
     $this->getRoute()->setLocalUrl('feed.xml')->setTitle('Feed')->setPublished(TRUE);
 }
コード例 #8
0
ファイル: RssEntity.php プロジェクト: svobodni/web
 protected function startup()
 {
     parent::startup();
     $this->targetPages = new ArrayCollection();
 }
コード例 #9
0
ファイル: UserEntity.php プロジェクト: svobodni/web
 protected function startup()
 {
     parent::startup();
     $this->roleEntities = new ArrayCollection();
     $this->logins = new ArrayCollection();
     $this->loginProviders = new ArrayCollection();
     $this->routes = new ArrayCollection();
     $this->generateNewSalt();
     $this->created = new \DateTime();
 }