protected function translateSubmoduleId($oldSubModuleId)
    {
        $submodule = Submodule::where('name',StudySubModule::findOrFail($oldSubModuleId)->name)->first();
        if ( $submodule != null ) {
            return $submodule->id;
        }
        throw new SubmoduleNotFoundByNameException();
    }
protected function translateSubmoduleId($oldSubModuleId)
    {
        $submodule = Submodule::where('name',StudySubModule::findOrFail($oldSubModuleId)->name)->first();
        if ( $submodule != null ) {
            return $submodule->id;
        }
        throw new SubmoduleNotFoundByNameException();
    }
protected function translateSubmoduleId ( $ oldSubModuleId ) { $ submodule = Submodule :: where ( 'name' , StudySubModule :: findOrFail ( $ oldSubModuleId ) -> name ) -> first ( ) ; if ( $ submodule != null ) { return $ submodule -> id ; } throw new SubmoduleNotFoundByNameException ( ) ; }
Translate submodule id.

@param $oldSubModuleId
@return
@throws SubmoduleNotFoundByNameException
Translate submodule id .