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