I am currently in the process of reordering an entire category tree via an upgrade script. I am aware that you can update the parent ID via the following:
$category->setParentId($value);
$category->save();
Is this the right method to carry out this update?
In doing this will the path and children_count values in the catalog_category_entity table auto update or will I have to set these before saving the category?