0

In my app the problem is that user can edit an object, but if user pressed "Cancel" I need to discard changes, if there any method to make local copy of realm object without adding it to RealmBase, or I should do all the copies manually?

2
  • Just do not commit your changes as far I know Commented Aug 31, 2016 at 14:48
  • my object already in Realm, I can't do anything with object without write transaction Commented Aug 31, 2016 at 16:26

1 Answer 1

1

If your model doesn't have references to any other models or collection of objects, you can use this method to initialise new instance with values stored in Realm.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.