Support transactions that include different relationships of a single model