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