Home > Xcode > Relationship does not have an inverse

Relationship does not have an inverse

Apple wants you to have inverse relationships. See Core Data documentation:

“It is possible for relationships to be navigable in only one direction (if you are never interested in finding out from a department object what employees are associated with it, then you do not have to model that relationship), however you are strongly encouraged always to model relationships in both directions.”

But perhaps yout don’t want/need an inverse relationship between two entities. To disable the XCode model compiler warnings simply check the box to ‘Suppress momc warnings on missing inverse relationships’.

Categories: Xcode
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: