Model Object
changedProperties()
Signature
Section titled “Signature”changedProperties() — returns string
Available in: model
Category: Change Functions
Description
Section titled “Description”Returns a list of the object properties that have been changed but not yet saved to the database.
Examples
Section titled “Examples”// Get an object, change it, and then ask for its changes (will return a list of the property names that have changed, not the values themselves)
member = model("member").findByKey(params.memberId);
member.firstName = params.newFirstName;
member.email = params.newEmail;
changedProperties = member.changedProperties();