Expose model.getParents api.