patch idsToObjects to support a parent id