简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM