Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete Objects in Realm using cascade Relationship

Tags:

ios

realm

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!

like image 457
Asif Bilal Avatar asked Oct 30 '14 07:10

Asif Bilal


1 Answers

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,

like image 95
bmunk Avatar answered Sep 17 '22 03:09

bmunk