I have a complex graph of Core Data on iPhone. A user object has many other objects that are related to each other with several relationships, etc.
My question is how to delete all related objects when I delete a custom object.
Thanks in advance!
In the user entity, set the cascade value for each relationship deletion rule.
Also see this answer in iPhone Master Data: Cascading Multi-to-One Deletion .
. , , , . , . node.
,
user--(phoneNumbers,Cascade)->>phoneNumber user<--(user,nullify)--phoneNumber
, . .
...
- ( , Cascade) β > PHONENUMBER - ( , Cascade) β > areaCodes
... ,
Source: https://habr.com/ru/post/1736349/More articles:Is there a way to throttle or limit the resources a user uses in Oracle? - performanceHow to configure JNDI for GWT (2.0) Hosted Mode? - java-eeHTML Email Template as NSString - EmailCreating Java projects with cyclic import in Eclipse - javaWhy do I need synchronization? - javaEntity Framework - additional dynamically calculated properties for business objects / models (ASP.NET MVC) - asp.net-mvcHow to save and retrieve language specific text in PHP? - phpDrupal Permissions Not Displayed for Custom Content Type - phphow to get html element id for smartgwt widgets? - javascriptHow to diagnose "operation timeout" HttpException - vb.netAll Articles