Instance Method

reset()

Returns this object to its saved state.

Declaration

func reset()

Discussion

This method updates all the properties of this object with the corresponding values in the event store. Any local changes that were not saved before invoking this method are lost. This method does nothing if the object was never saved.

See Also

Saving and Restoring State

var hasChanges: Bool

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

isNew

Returns whether this object has ever been saved.

func refresh() -> Bool

Merges changes to this object with the latest saved values.

func rollback()

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