public function addParents($term_id, array $parent_ids)
    {
        $this->testCanAddParents($term_id, count($parent_ids));

        foreach ($parent_ids as $id) {
            $this->termHierarchyRepository->addParent($term_id, $id);
        }
    }
public function addParents($term_id, array $parent_ids)
    {
        $this->testCanAddParents($term_id, count($parent_ids));

        foreach ($parent_ids as $id) {
            $this->termHierarchyRepository->addParent($term_id, $id);
        }
    }
public function addParents ( $ term_id , array $ parent_ids ) { $ this -> testCanAddParents ( $ term_id , count ( $ parent_ids ) ) ; foreach ( $ parent_ids as $ id ) { $ this -> termHierarchyRepository -> addParent ( $ term_id , $ id ) ; } }
Add a list of parents to a term

@param int $term_id
@param array<integer> $parent_ids
Add a list of parents to a term