Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-841

Allow to delete RealmResults baked by backlinks

      Problem

      If I try to remove all objects that are in the RealmResult list baked by backlinks
      I get
      java.lang.IllegalArgumentException: Cannot delete custom Deleteable objects: ObjectBoundRealmResults
      at io.realm.kotlin.internal.InternalDeleteableKt.asInternalDeleteable(InternalDeleteable.kt:36)
      at io.realm.kotlin.internal.InternalMutableRealm$DefaultImpls.delete(InternalMutableRealm.kt:63)
      at io.realm.kotlin.internal.SuspendableWriter$WriterRealm.delete(SuspendableWriter.kt:51)
      ...
      when doing MutableRealm.delete(realmResults)

      Solution

      All elements of backlinked RealmResults are deleted from database when doing MutableRealm.delete(realmResults)

      Alternatives

      No response

      How important is this improvement for you?

      I would like to have it but have a workaround

      Feature would mainly be used with

      Local Database only

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: