Is there any good way to change parent entity of an NSManagedObject in another version?
Lets say on model version 1.1 I got:
- anObject - with no parent entity
in version 1.2 i want to make it inherit from
- object - a parent class that already exist in version 1.1 and containing the property "objectID"
When i change it's parent entity the application crash with:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot create managed object contexts: The persistent store coordinator does not have any persistent stores. This likely means that you forgot to add a persistent store or your attempt to do so failed with an error.'
In this answer it's suggested to create new entities with different names in a new version, and delete the old ones.
My question is if there is a 'cleaner' solution for this kind of problem?
How do i add a mapping model to the project/ current model?