How to split an entity in Core Data migration mapping
Asked Answered
C

1

5

It seems like this should be straight forward but I have not been able to find a good example of it. I have a simple Core Data entity that I want to split into two separate entities. Apple's documentation mentions it at a high level (Mapping Overview), however, it is unclear what the actual mapping model should look like to associate the relationship to the new split out entity back to the original.

Crosspollinate answered 10/12, 2009 at 23:21 Comment(0)
C
12

OK, I have found my own answer to this one and have detailed it in this blog post: https://slalomdotcom.wordpress.com/2010/01/08/splitting-an-entity-in-a-coredata-migration/

Crosspollinate answered 8/1, 2010 at 23:49 Comment(3)
I get a server not found error when I click on that link. Is it just me?Tintinnabulum
Awesome! Gave you mad up rep.Tintinnabulum
Just note how relationship is set back in second picture. And if actual Xcode project would help, I used it here: github.com/coodly/ios-gambrinusWhitson

© 2022 - 2024 — McMap. All rights reserved.