public function setCourses(array $courseQuantityPerCourseLevelId) { foreach ($courseQuantityPerCourseLevelId as $levelId => $courseQuantity) { $level = CourseLevel::find($levelId); $this->setCoursesPerLevel($level, $courseQuantity); } }
public function find($id) { return CourseLevel::find($id); }