public function removeTranslation($nb_translation)
    {
        if ($this->checkForValidTranslationInstance($nb_translation) &&
            ($nb_translation->isValueNumeric(NABU_LANG_FIELD_ID)||
             $nb_translation->isValueGUID(NABU_LANG_FIELD_ID))
        ) {
            $nb_language_id = $nb_translation->getValue(NABU_LANG_FIELD_ID);
            $this->translations_removed->addItem($nb_translation);
            if ($this->translations_list->containsKey($nb_language_id)) {
                $this->translations_list->removeItem($nb_translation);
            }
        }
    }
public function removeTranslation($nb_translation)
    {
        if ($this->checkForValidTranslationInstance($nb_translation) &&
            ($nb_translation->isValueNumeric(NABU_LANG_FIELD_ID)||
             $nb_translation->isValueGUID(NABU_LANG_FIELD_ID))
        ) {
            $nb_language_id = $nb_translation->getValue(NABU_LANG_FIELD_ID);
            $this->translations_removed->addItem($nb_translation);
            if ($this->translations_list->containsKey($nb_language_id)) {
                $this->translations_list->removeItem($nb_translation);
            }
        }
    }
public function removeTranslation ( $ nb_translation ) { if ( $ this -> checkForValidTranslationInstance ( $ nb_translation ) && ( $ nb_translation -> isValueNumeric ( NABU_LANG_FIELD_ID ) || $ nb_translation -> isValueGUID ( NABU_LANG_FIELD_ID ) ) ) { $ nb_language_id = $ nb_translation -> getValue ( NABU_LANG_FIELD_ID ) ; $ this -> translations_removed -> addItem ( $ nb_translation ) ; if ( $ this -> translations_list -> containsKey ( $ nb_language_id ) ) { $ this -> translations_list -> removeItem ( $ nb_translation ) ; } } }
Remove a translation child object from the internal list of this entity. If after this action
you calls updateTranslations method, then it call the delete method to remove definitely
this translation from the database
@param mixed $nb_translation Object containing a valid language ID or and ID directly
Remove a translation child object from the internal list of this entity . If after this action you calls updateTranslations method then it call the delete method to remove definitely this translation from the database