Term::remove PHP 메소드

remove() 공개 메소드

Remove term
public remove ( integer $id, integer $vocabularyId )
$id integer Term Id
$vocabularyId integer Vocabulary Id
    public function remove($id, $vocabularyId)
    {
        $taxonomyId = $this->Vocabulary->Taxonomy->field('id', array('term_id' => $id, 'vocabulary_id' => $vocabularyId));
        $this->setScopeForTaxonomy($vocabularyId);
        return $this->Taxonomy->delete($taxonomyId) && $this->delete($id);
    }