I've got an iPhone app that uses many-to-many relationships to link tags and notes together. I'm currently using Core Data's "Relationships" feature to accomplish this, but would like to migrate to using a join table instead.
Here's my challenge: I'd like to migrate from the old model to the join-table model, and I need to figure out how to perform that data migration.
Are there any good examples of how to do this?
Update: I'm clarifying my question here to help out with what's going on here: I want to try using Simperium to support our app, but Simperium doesn't support many-to-many relationships (!).
As an example of what I'm trying to do, let's use the iPhoneCoreDataRecipes app as an example.
Here's what my Core Data scheme currently resembles:
...and here's what I'm transitioning to:
How do I get from one to the other, and bring the data with me?
Apple's documentation for Core Data Migration is notoriously sparse, and I don't see any useful walkthroughs for using an NSEntityMapping or NSMigrationManager subclass to get the job done.
recipeIngredient
, which would appear to Simperium to link to a join table, while in fact it's just a different view on your multi-multi link (which is in fact implemented as a join table, after all). – Schober