Return the RealmModel object after save() ?
lpbas opened this issue · 1 comments
lpbas commented
Hello. I would like to thank you for these helpful extensions!
Is it possible to get the saved RealmModel back from the Realm, after calling save(), so we can continue using it?
I would like to do the following:
val user = User("John").save() //do something else with the user object
Is this possible?
Thank you!
lpbas commented
I just saw the .createOrUpdateManaged(realm)
method which does exactly what I was looking for. Thank you very much!