protected function getTranslationOrNew($locale)
    {
        if (($translation = $this->getTranslation($locale)) === null) {
            $translation = $this->createNewTranslation($locale);
        }

        return $translation;
    }
protected function getTranslationOrNew($locale)
    {
        if (($translation = $this->getTranslation($locale)) === null) {
            $translation = $this->createNewTranslation($locale);
        }

        return $translation;
    }
protected function getTranslationOrNew ( $ locale ) { if ( ( $ translation = $ this -> getTranslation ( $ locale ) ) === null ) { $ translation = $ this -> createNewTranslation ( $ locale ) ; } return $ translation ; }
Get translation or create new if not exists

@param $locale
@return Model|null
Get translation or create new if not exists