[update] non-primary key method
1 parent ce6259d commit d1c2e2a69b941f38a100a9fe7b33d427aaf3f8e9
MatsumotoKeiju authored on 9 Jul 2017
Showing 1 changed file
View
2
■■■
app/src/main/kotlin/org/ntlab/leftoverrecipe/model/db/RecipeDataRealm.kt
mRealm = Realm.getInstance(config)
mRealm.use {
realm ->
realm?.executeTransaction {
realm?.copyToRealmOrUpdate(recipeData)
realm.copyToRealm(recipeData)
}
}
}
}