public function addVCourseSession(VCourseSession $l) { $this->collVCourseSessions[] = $l; $l->setClassGroup($this); }