Many-to-Many Key Data

I have the following data model, and I want to break the many-to-many relationship between EntityA and EntityB. I do this by removing the EntityC object that connects them both. I found that EntityA still has an association with EntityB, although I kept the context of the managed entity, I can see how the changes take effect after the EntityA records are retrieved from the database again. Am I missing something? Thanks in advance Sarah

alt text

+1
source share
1 answer

I agree with Barry's comment, from your description it sounds like you are using more than one NSManagedObjectContext, and this will definitely cause a problem.

?

Apple?

. A, C C , Core Data , . , , - , . , ?

, EntityA EntityB. ? EntityA EntityB . ?

, , , EntityC, EntityA, EntityB.

+2

Source: https://habr.com/ru/post/1737896/


All Articles