// If replacing the document, remove all sub-records that were not replaced. if (axdBase.topRecordAction() == AxdRecordAction::Replace) { this.deleteUntouchedSubRecords(currentEntity,_mapPolicy); }