replaced get_all_related_many_to_many_objects with new API