Instance Property

hasChanges

Returns whether this object or any of the objects it contains has uncommitted changes.

Declaration

var hasChanges: Bool { get }

Return Value

Returns true if there are uncommitted changes; otherwise, false.

See Also

Saving and Restoring State

isNew

Returns whether this object has ever been saved.

func refresh() -> Bool

Merges changes to this object with the latest saved values.

func reset()

Returns this object to its saved state.

func rollback()

Rolls back the property values of this object to its original state when it was first fetched.