Complex Core Data Migration with RestKit

76 views
Skip to first unread message

yeos_lee

unread,
Sep 12, 2012, 6:58:03 AM9/12/12
to res...@googlegroups.com
Hi,

Been using Restkit recently and it is really awesome.

I am trying to do a complex core data migration for the latest version of my app and I need to subclass NSEntityMigrationPolicy to perform the custom data migration. In order for the NSEntityMigrationPolicy to work, I will need to set NSInferMappingModelAutomaticallyOption = NO when persistentStoreCoordinator being created and seems like RestKit already set this to YES by default. 

I know I can actually change this in the createPersistentStoreCoordinator function in RKManagedObjectStore.m and everything will work. However, I am wondering is there a better way to do this without modifying the source code of RestKit?

Thank you.

Philippe Boudreau

unread,
Nov 6, 2015, 12:18:13 PM11/6/15
to RestKit
Hi,

I know you asked this question a long time ago, but I'm wondering about exactly the same thing today. What approach did you end up taking?

Thanks!

Philippe
Reply all
Reply to author
Forward
0 new messages