Add model.getParents extern