public function addStudentScore(StudentScore $l) { $this->collStudentScores[] = $l; $l->setStudentCourse($this); }