/** * @inheritdoc */ public function removeCourse(CourseInterface $course) { if ($this->courses->contains($course)) { $this->courses->removeElement($course); $course->removeTerm($this); } }
/** * @param CourseInterface $course */ public function removeAdministeredCourse(CourseInterface $course) { $this->administeredCourses->removeElement($course); $course->removeAdministrator($this); }