RestKit 2.0 : Mapping - second entitiy nil when not unique

末鹿安然 提交于 2019-11-28 02:25:38

You haven't shown mappings, and I'm assuming that you have a to-many relationship to support what you're trying to do.

When you create the relationship mapping you need to set the assignmentPolicy property to RKUnionAssignmentPolicy. The default policy replaces any existing connection with the new one. This policy will merge the connections instead.

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