Closed Kolyall closed 1 year ago
Hi @Kolyall Thank you for this request. I'll fold this into https://github.com/realm/realm-java/issues/1104 as a duplicate.
Note that we have support for Embedded Objects, which do support cascading deletes, but have other tradeoffs like not allowing primary keys https://www.mongodb.com/docs/realm/sdk/java/data-types/embedded-objects/
Problem
Version: android
io.realm:realm-gradle-plugin:10.13.0
add posibility to override fun deleteFromRealm, then I will add my implementation of deleting the parent object like this:
I have: RParent:
RChild:
Currently to remove RParent by id I use this func, also nested objects needs to be removed:
I want to write common func for all my databases like this, but method
deleteAllFromRealm
doesn't remove nested list:The same for func
io.realm.Realm#insertOrUpdate(io.realm.RealmModel)
Solution
No response
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only