Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     $this->courses = new ArrayCollection();
     $this->addRole("ROLE_MENTOR");
     $this->addCourse(new Course());
     // an empty Course for the registration form
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     $this->courses = new ArrayCollection();
     $this->addRole("ROLE_PUPIL");
 }