Trying to use wp_set_object_terms while supplying an array for both term id, and texonomies

what i ended up doing:

foreach($this->parents as $parent){
            $taxonomies[] = $parent['app_name'];
        }
        wp_delete_object_term_relationships( (int)$parent['item_id'], array_unique( $taxonomies ) );

        foreach($this->parents as $parent){
            $cat_id = (int)$parent['item_id'];
            $taxonomy = $parent['app_name'];
            wp_set_object_terms( (int)$parent['item_id'], $cat_id,$taxonomy, true);
        }

This solution is a little longer but it worked and i couldn’t spend more time searching the problem.

Thanks