Core Data, No Inverse Relationship

Viewed 2331

I'm working to get rid of a bunch of warnings in our codebase of the form:

Entity.relationship should have an inverse.

In general, although our code does not reach through these inverses, it sounds like it is a good idea to put them in anyway.

My question is about how I would do this.

  1. Should I make these changes through a lightweight migration? That is, should I be creating another xcdatamodel?

  2. For the given data model, what if we already have multiple versions/migrations. For example supposed we have the ReportsDataModel. And underneath that are ReportsDataModel1, ReportsDataModel2, and ReportsDataModel3. It seems like XCode 7 is giving me the same warnings on each data model. So if I fixed them in a lightweight migration to ReportsDataModel4, it seems like it wouldn't get rid of the previous warnings.

What is the recommended way to get around this issue?

-Arjun

1 Answers
Related