public function addCourseSchedule(CourseSchedule $l) { $this->collCourseSchedules[] = $l; $l->setLocation($this); }