Support undo when deleting the related record