Asif Bilal
Asif Bilal

Reputation: 4359

Delete Objects in Realm using cascade Relationship

I have a Class "Person":RLMObject. Now this Class has a property "Dog":RLMObject. When i delete "Person" object from Realm, it doesn't automatically delete the "Dog" associated with it.

Is there any delete rule in Realm like in Core Data? Help me to resolve this issue.

Thanks!

Upvotes: 10

Views: 3767

Answers (1)

bmunk
bmunk

Reputation: 1578

We are actually working on that feature as we speak, but until it is finally released, you would have to manually delete the Dog before you delete the Person.

Cheers,

Upvotes: 12

Related Questions