예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->users = new ArrayCollection();
     $this->models = new ArrayCollection();
     $this->organizations = new ArrayCollection();
 }
예제 #2
0
파일: User.php 프로젝트: ngydat/CoreBundle
 public function __construct()
 {
     parent::__construct();
     $this->roles = new ArrayCollection();
     $this->groups = new ArrayCollection();
     $this->abstractResources = new ArrayCollection();
     $this->salt = base_convert(sha1(uniqid(mt_rand(), true)), 16, 36);
     $this->orderedTools = new ArrayCollection();
     $this->fieldsFacetValue = new ArrayCollection();
     $this->models = new ArrayCollection();
     $this->organizations = new ArrayCollection();
     $this->events = new ArrayCollection();
     $this->administratedOrganizations = new ArrayCollection();
 }