public function addSubjectGrading(SubjectGrading $l) { $this->collSubjectGradings[] = $l; $l->setSubjectAccal($this); }