protected function translateStudyId($oldStudyId)
    {
        $study = ScoolStudy::where('name',Study::findOrFail($oldStudyId)->name)->first();
        if ( $study != null ) {
            return $study->id;
        }
        throw new StudyNotFoundByNameException();
    }
protected function translateStudyId($oldStudyId)
    {
        $study = ScoolStudy::where('name',Study::findOrFail($oldStudyId)->name)->first();
        if ( $study != null ) {
            return $study->id;
        }
        throw new StudyNotFoundByNameException();
    }
protected function translateStudyId ( $ oldStudyId ) { $ study = ScoolStudy :: where ( 'name' , Study :: findOrFail ( $ oldStudyId ) -> name ) -> first ( ) ; if ( $ study != null ) { return $ study -> id ; } throw new StudyNotFoundByNameException ( ) ; }
Translate old ebre-escool study id to scool id.

@param $oldStudyId
@return mixed
@throws StudyNotFoundByNameException
Translate old ebre - escool study id to scool id .