RestKit: Intersect database seeding or where is didSeedObject in RestKit > 0.20?

ぃ、小莉子 提交于 2019-12-11 18:34:40

问题


I am updating a function to seed a database with a RestKit version < 0.10. There is a didSeedObject method to intersect the seeding. In my code it is used to map a relationship by primary / foreign key.

In RestKit > 0.20 the seeding code has changed. There is now a RKManagedObjectImporter to do this.

My question is: How can I intersect the seeding so I can create the relationship in the same kind of way it was done with didSeedObject?

EDIT: Since didSeedObject or a way to intersect the mapping seems to have disappeared in RestKit > 0.20 I am trying to do this differently by doing the mapping right away. Therefore I have created another question here.

来源:https://stackoverflow.com/questions/29670218/restkit-intersect-database-seeding-or-where-is-didseedobject-in-restkit-0-20

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