Ejemplo n.º 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
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->courses = new ArrayCollection();
     $this->addRole("ROLE_PUPIL");
 }