Skip to content

Model Class

invokeWithTransaction()

invokeWithTransaction() — returns any

Available in: model Category: Miscellaneous Functions

Runs the specified method within a single database transaction.

NameTypeRequiredDefaultDescription
methodstringyesModel method to run.
transactionstringnocommitSet this to commit to update the database, rollback to run all the database queries but not commit them, or none to skip transaction handling altogether.
isolationstringnoread_committedIsolation level to be passed through to the cftransaction tag. See your CFML engine’s documentation for more details about cftransaction’s isolation attribute.