Skip to content

Instance Property

hasChanges

Returns true if a model has fields whose values have been explicitly set or modified since the most recent load from and/or save to the database (if any).
var hasChanges: Bool { get }

Discussion

If false is returned, attempts to save changes to the database (or more precisely, to send values to any given DatabaseInput) will do nothing.