Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3781478
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:56:53+00:00 2026-05-19T10:56:53+00:00

Picture a core data model with images in it. These images are stored in

  • 0

Picture a core data model with images in it. These images are stored in an object called OImage. There are several other objects that ‘contain’ images, so they all have a one to many relationship with the OImage object. One example is the OLocation object from the image.

enter image description here

As you can see, OLocation has a one to many relationship with OImage. Because there is no need for it, there is no inverse relationship from the OImage pointing back to OLocation. All according to plan.

Yet when I build my project, XCode keeps warning me about the lack of the inverse relationship:

OLocation.images — to-many relationship does not have an inverse: this is an advanced setting (no object can be in multiple destinations for a specific relationship)

Is it illegal to create a one-to-many relationship without the inverse? Or is this warning something that I can somehow turn off?

Cheers, EP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T10:56:53+00:00Added an answer on May 19, 2026 at 10:56 am

    It is perfectly legal, but not often advisable to have a unidirectional relationship. This link explains this in more detail (from Core Data Programming guide).

    You can however turn the warning off, by adding a new property to the build settings called MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS and set its value to YES.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the Core Data object model I am working with (I am a
I have a relationship in a Core Data model that feels like it wants
I have a Core Data model similar to this: When a Webgallery or Article
I have a list based application that uses Core Data to store most information,
So I am working on an app that uses core data to store attributes
I have an entity that stores information about my photos in core data. One
I need to store a large number of json feeds into Core Data. There
I have a core data model defined as follows: A User has many events.
This code should save am uiimage to core data. The image is stored in
Picture says 1000 words: http://d.pr/ZeBI Basically in most other browsers, when focus on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.