Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core Data Annotation - Repairing Missing Delete Propagation

I have a program that works perfectly fine. No crash, no bug or anything, but when it comes to deleting an NSManagedObject, the following message appears in the console.

Core Data: annotation: repairing missing delete propagation for to-one relationship

And then, some details about the relationship.

Once again, this does not make the app crash and the program goes on running as expected, but still, that makes me worried. Should I do something about it or is it alright to have some annotations from Core Data?

Thanks in advance :)

like image 398
user2006934 Avatar asked Feb 12 '13 00:02

user2006934


1 Answers

You should adopt a better strategy on deletion.

  1. Go to your .xcdatamodeld, select the concerned relationship

  2. Select your entity and relationship using an inverse relation

  3. Choose what to do on Delete Rule

    enter image description here

like image 146
dulgan Avatar answered Nov 15 '22 14:11

dulgan