Skip to content

Model Configuration

afterRollback()

afterRollback() — returns void

Available in: model Category: Callback Functions

Registers method(s) to run AFTER the database transaction rolls back (v4.2.0).

NameTypeRequiredDefaultDescription
methodsstringno—Method name or list of method names that should be called when this callback event occurs in an object’s life cycle (can also be called with the method argument).
onstringno—Restrict to one or more operations: create, update, delete (comma-delimited; blank = all).