Change categories when editing a rule

#165 
I think you meant `$entity->get_parent_id`