Model Object
savedChanges()
Signature
Section titled “Signature”savedChanges() — returns struct
Available in: model
Category: Change Functions
Description
Section titled “Description”Returns a struct detailing the changes the last successful save wrote to the database, in the
same shape as allChanges(): {property: {changedFrom, changedTo}}. Available from the
save’s afterCreate / afterUpdate / afterSave callbacks on, after allChanges() has been
reset. Each afterCommit sees the save that queued it, and an afterRollback the save that was
undone. Empty before the first save, after a save that changed nothing, and after reload().