示例#1
0
文件: User.php 项目: bireme/proethos2
 public function __construct()
 {
     parent::__construct();
     $this->proethos2_roles = new ArrayCollection();
     $this->isActive = true;
     // may not be needed, see section on salt below
     // $this->salt = md5(uniqid(null, true));
 }
示例#2
0
 public function __construct()
 {
     $this->country = new ArrayCollection();
     $this->budget = new ArrayCollection();
     $this->clinical_trial = new ArrayCollection();
     $this->schedule = new ArrayCollection();
     $this->attachments = new ArrayCollection();
     // call Grandpa's constructor
     parent::__construct();
 }
示例#3
0
 /** 
  * Constructor 
  */
 public function __construct()
 {
     parent::__construct();
     $this->submission = new ArrayCollection();
 }