protected function resetMain()
    {
        try {
            $language = $this->languageRepository->mainLanguage();
            if (null !== $language) {
                $result = $this->languageRepository
                            ->setRepositoryObject($language)
                            ->save(array('MainLanguage' => 0));

                return $result;
            }

            return true;
        } catch (\Exception $e) {
            if (isset($this->languageRepository) && $this->languageRepository !== null) {
                $this->languageRepository->rollBack();
            }

            throw $e;
        }
    }
protected function resetMain()
    {
        try {
            $language = $this->languageRepository->mainLanguage();
            if (null !== $language) {
                $result = $this->languageRepository
                            ->setRepositoryObject($language)
                            ->save(array('MainLanguage' => 0));

                return $result;
            }

            return true;
        } catch (\Exception $e) {
            if (isset($this->languageRepository) && $this->languageRepository !== null) {
                $this->languageRepository->rollBack();
            }

            throw $e;
        }
    }
protected function resetMain ( ) { try { $ language = $ this -> languageRepository -> mainLanguage ( ) ; if ( null !== $ language ) { $ result = $ this -> languageRepository -> setRepositoryObject ( $ language ) -> save ( array ( 'MainLanguage' => 0 ) ) ; return $ result ; } return true ; } catch ( \ Exception $ e ) { if ( isset ( $ this -> languageRepository ) && $ this -> languageRepository !== null ) { $ this -> languageRepository -> rollBack ( ) ; } throw $ e ; } }
Degrades the main language to normal language

@throws \Exception
@return boolean

@api
Degrades the main language to normal language