Referencing Entity from external data model - Core Data
- by Ben Reeves
I have a external library which includes a core data model, I would like to add a new entity to this model which has a relationship with one of the entities from the library. I know I could modify the original, but is there a way to without needing to pollute the library?
I tried just creating a new model with an entity named the same, but that doesn't work:
* Terminating app due to uncaught exception
'NSInvalidArgumentException', reason:
'Can't merge models with two different
entities named 'Host''