Exemplo n.º 1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->user_type = User::TYPE_PRESTATAIRE;
     $this->categorie = new \Doctrine\Common\Collections\ArrayCollection();
     $this->addRole('role_prestataire');
 }
Exemplo n.º 2
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->user_type = User::TYPE_INTERNAUT;
     $this->addRole('role_internaut');
 }