Instance Method

rollback()

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

Declaration

func rollback()

Discussion

Any local changes to this object are lost when invoking this method. This method does not re-fetch property values from the event store. This method does nothing if the object was never changed.

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 reset()

Returns this object to its saved state.