public function addVCourseSchedule(VCourseSchedule $l) { $this->collVCourseSchedules[] = $l; $l->setLocation($this); }