示例#1
0
文件: Group.php 项目: skycri/MyAbos
 /**
  * Constructor
  */
 public function __construct($name, $roles)
 {
     parent::__construct($name, $roles);
     $this->users = new ArrayCollection();
 }
示例#2
0
 /**
  * Constructor
  */
 public function __construct($name, $roles = array())
 {
     parent::__construct($name, $roles);
     $this->droits = new \Doctrine\Common\Collections\ArrayCollection();
 }
示例#3
0
文件: Group.php 项目: teraelis/forum
 /**
  * Constructor
  */
 public function __construct($name, $roles)
 {
     parent::__construct($name, $roles);
     $this->userRoles = new \Doctrine\Common\Collections\ArrayCollection();
     $this->permission = new \Doctrine\Common\Collections\ArrayCollection();
 }
示例#4
0
 public function __construct($name = '', $roles = array())
 {
     parent::__construct($name, $roles);
     $this->children = new ArrayCollection();
     $this->users = new ArrayCollection();
 }
示例#5
0
 public function __construct($name = null, $roles = array())
 {
     parent::__construct($name, $roles);
 }