コード例 #1
0
ファイル: Group.php プロジェクト: claroline/distribution
 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();
 }