/** * @param ChildStudyProgram $studyProgram The ChildStudyProgram object to add. */ protected function doAddStudyProgram(ChildStudyProgram $studyProgram) { $this->collStudyPrograms[] = $studyProgram; $studyProgram->setSubject($this); }