RestKit: Intersect database seeding or where is di

2019-09-03 02:07发布

问题:

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.