I'd like to write a function that deletes the given RealmModel
from the Realm
, opening and closing the Realm
.
I'm having a hard time to query for the same object on the new Realm
instance in this delete method. What would be the recommended way to do so? I do not even know how to get the Primary Key without manually overriding a method in each of my models.