protected function translateCourseId($oldCourseId)
    {
        $course = ScoolCourse::where('name',Course::findOrFail($oldCourseId)->name)->first();
        if ( $course != null ) {
            return $course->id;
        }
        throw new CourseNotFoundByNameException();
    }
protected function translateCourseId($oldCourseId)
    {
        $course = ScoolCourse::where('name',Course::findOrFail($oldCourseId)->name)->first();
        if ( $course != null ) {
            return $course->id;
        }
        throw new CourseNotFoundByNameException();
    }
protected function translateCourseId ( $ oldCourseId ) { $ course = ScoolCourse :: where ( 'name' , Course :: findOrFail ( $ oldCourseId ) -> name ) -> first ( ) ; if ( $ course != null ) { return $ course -> id ; } throw new CourseNotFoundByNameException ( ) ; }
Translate old ebre-escool course id to scool id.

@param $oldCourseId
@return mixed
@throws CourseNotFoundByNameException
Translate old ebre - escool course id to scool id .