public function addCourseScheduleDetail(CourseScheduleDetail $l) { $this->collCourseScheduleDetails[] = $l; $l->setLocation($this); }