public function setLanguage(Language $language)
    {
        $this->language = $language;
        $this->languageId = $language->getLanguageId();
    }
public function setLanguage(Language $language)
    {
        $this->language = $language;
        $this->languageId = $language->getLanguageId();
    }
public function setLanguage ( Language $ language ) { $ this -> language = $ language ; $ this -> languageId = $ language -> getLanguageId ( ) ; }
Sets the Language property

@param Language $language Language Entity

@return void
Sets the Language property