protected function translateClassroomId($oldClassroomId)
    {
        $classroom = Classroom::where('name',ClassroomGroup::findOrFail($oldClassroomId)->name)->first();
        if ( $classroom != null ) {
            return $classroom->id;
        }
        throw new ClassroomNotFoundByNameException();
    }
protected function translateClassroomId($oldClassroomId)
    {
        $classroom = Classroom::where('name',ClassroomGroup::findOrFail($oldClassroomId)->name)->first();
        if ( $classroom != null ) {
            return $classroom->id;
        }
        throw new ClassroomNotFoundByNameException();
    }
protected function translateClassroomId ( $ oldClassroomId ) { $ classroom = Classroom :: where ( 'name' , ClassroomGroup :: findOrFail ( $ oldClassroomId ) -> name ) -> first ( ) ; if ( $ classroom != null ) { return $ classroom -> id ; } throw new ClassroomNotFoundByNameException ( ) ; }
Translate old ebre-escool classroom id to scool id.

@param $oldClassroomId
@return integer
@throws ClassroomNotFoundByNameException
Translate old ebre - escool classroom id to scool id .