useTransaction method
Implementation
T useTransaction(DBTransaction trx) {
_trx = trx;
// A QueryBuilder captures its executor at construction time. Reset it so
// a model that enters a transaction cannot retain the global DB executor.
_queryBuilder = null;
return this as T;
}