Skip to content

Model Object

clearChangeInformation()

clearChangeInformation() — returns void

Available in: model Category: Change Functions

Clears all internal tracking information that Wheels maintains about an object’s properties. This does not undo changes made to the object—it simply resets the record of which properties are considered “changed,” so methods like hasChanged(), changedProperties(), or allChanges() will no longer report them. This is useful when you modify a property programmatically (for example, in a callback) and don’t want Wheels to attempt saving or reporting it as a change.

NameTypeRequiredDefaultDescription
propertystringnostring false Name of property to clear information for.
1. Clear change information for a single property
// Convert startTime to UTC in an "afterFind" callback
this.startTime = DateConvert("Local2UTC", this.startTime);

// Tell Wheels to clear internal change tracking for this property
this.clearChangeInformation(property="startTime");

2. Clear change information for all properties
// Clear internal tracking for all properties of the object
this.clearChangeInformation();