You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per documentation and below example should properly in Kotlin Multi platform but it's not working Why
// plain old kotlin object
val person = Person().apply {
name = "Carlo"
dog = Dog().apply { name = "Fido"; age = 16 }
}
// persist it in a transaction
realm.beginTransaction()
val managedPerson = realm.copyToRealm(person)
realm.commitTransaction()
// alternatively we can use
realm.beginTransaction()
realm.create().apply {
name = "Bar"
dog = Dog().apply { name = "Filo"; age = 11 }
}
realm.commitTransaction()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As per documentation and below example should properly in Kotlin Multi platform but it's not working Why
// plain old kotlin object
val person = Person().apply {
name = "Carlo"
dog = Dog().apply { name = "Fido"; age = 16 }
}
// persist it in a transaction
realm.beginTransaction()
val managedPerson = realm.copyToRealm(person)
realm.commitTransaction()
// alternatively we can use
realm.beginTransaction()
realm.create().apply {
name = "Bar"
dog = Dog().apply { name = "Filo"; age = 11 }
}
realm.commitTransaction()
Beta Was this translation helpful? Give feedback.
All reactions