public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null)
    {
        if (!$this->isNew()) {
            ChildPersonFunctionI18nQuery::create()
                ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale))
                ->delete($con);
        }
        if (isset($this->currentTranslations[$locale])) {
            unset($this->currentTranslations[$locale]);
        }
        foreach ($this->collPersonFunctionI18ns as $key => $translation) {
            if ($translation->getLocale() == $locale) {
                unset($this->collPersonFunctionI18ns[$key]);
                break;
            }
        }

        return $this;
    }
public function removeTranslation($locale = 'en_US', ConnectionInterface $con = null)
    {
        if (!$this->isNew()) {
            ChildPersonFunctionI18nQuery::create()
                ->filterByPrimaryKey(array($this->getPrimaryKey(), $locale))
                ->delete($con);
        }
        if (isset($this->currentTranslations[$locale])) {
            unset($this->currentTranslations[$locale]);
        }
        foreach ($this->collPersonFunctionI18ns as $key => $translation) {
            if ($translation->getLocale() == $locale) {
                unset($this->collPersonFunctionI18ns[$key]);
                break;
            }
        }

        return $this;
    }
public function removeTranslation ( $ locale = 'en_US' , ConnectionInterface $ con = null ) { if ( ! $ this -> isNew ( ) ) { ChildPersonFunctionI18nQuery :: create ( ) -> filterByPrimaryKey ( array ( $ this -> getPrimaryKey ( ) , $ locale ) ) -> delete ( $ con ) ; } if ( isset ( $ this -> currentTranslations [ $ locale ] ) ) { unset ( $ this -> currentTranslations [ $ locale ] ) ; } foreach ( $ this -> collPersonFunctionI18ns as $ key => $ translation ) { if ( $ translation -> getLocale ( ) == $ locale ) { unset ( $ this -> collPersonFunctionI18ns [ $ key ] ) ; break ; } } return $ this ; }
Remove the translation for a given locale

@param     string $locale Locale to use for the translation, e.g. 'fr_FR'
@param     ConnectionInterface $con an optional connection object

@return    ChildPersonFunction The current object (for fluent API support)
Remove the translation for a given locale