Deleting objects in the object list

How to remove objects in the area list correctly? Is it correct:

class Parent: Object {
    dynamic var children: List<Child>
}


realm.write {
        realm.delete(parent.children)
        parent.childList.removeAll()
    }

      

My tests don't like this

+3


source to share





All Articles