Search code examples
iosswiftcore-datansmanagedobject

When a managed object model updates its relationship model is not getting updated


I have a feed model which is having one-many relationship with user model. When I am updating a parameter on user model on mainQueueContext, my feed model is pointing to that old user model.

Can someone help me where could be the problem?


Solution

  • The issue issue is with both are in different context. When we use parent and child context we should make sure to save parent context also.