iOS CoreData inverse relationships to itself

纵饮孤独 提交于 2019-11-30 09:05:13

问题


I am trying to build a CoreData model similar to Twitter user when User can have many other users who follows him and many other users followed by him. I attached the model that I have tried to use but seems it is getting to complicating to retrieve followers. What is the best way to deal with this situation?


回答1:


I think you need to create a second relationship (followedBy) and make that the inverse.



来源:https://stackoverflow.com/questions/12709842/ios-coredata-inverse-relationships-to-itself

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!