public function addStudentMedical(StudentMedical $l) { $this->collStudentMedicals[] = $l; $l->setClassGroup($this); }