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 602969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:52:50+00:00 2026-05-13T16:52:50+00:00

I have the Order table which contains information about a specific order, (when does

  • 0

I have the Order table which contains information about a specific order, (when does it start, how many people, etc…) and that Order table has To-Many relationship to Menu Item table. I call that relationship “orderItems”.

The compiler gives me warning, “Order.orderedItems — to-many relationship does not have an inverse: this is an advanced setting (no object can be in multiple destinations for a specific relationship)”

How do you normally do for inverse relationship? Do I need to create a new relationship on the Menu Item to point back to Order, and set the inverse relationship to the “orderedItems”? (In fact, there is no reason for me to save that data in the Menu Item table)

Someone can explain to me why, or at least, point me the reason on why I need to create the inverse relationship on the Menu Item table.

Thanks in advance,

  • 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-13T16:52:50+00:00Added an answer on May 13, 2026 at 4:52 pm

    I ran into this warning and problem too! Here’s what you need to know…

    Lets say you have two tables – Cars and Drivers. You define a one-to-one relationship – one car to one driver, but no inverse.

    So now, if you create a car and assign it a driver, if you delete the driver later, and then try and access car.driver, your program will crash. Car.driver will not be nil – it will crash your program.

    So, if you don’t create an inverse, you can’t ever check to see if something is nil, and you can’t even safely work with car.driver at all if driver has been deleted.

    I don’t like how XCode has this set up. It should default to inverse and be a pain in the ass to change it.

    Setting up an inverse is simple. Just open your xcdatamodel in XCode, click the existing relationship, and check the inverse box.

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

Sidebar

Ask A Question

Stats

  • Questions 297k
  • Answers 297k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think that versions:display-dependency-updates is what you're looking for. May 13, 2026 at 7:13 pm
  • Editorial Team
    Editorial Team added an answer You need bi-directional communication with the new process from your… May 13, 2026 at 7:13 pm
  • Editorial Team
    Editorial Team added an answer The problem is not the replace method , it is… May 13, 2026 at 7:13 pm

Related Questions

I have a table full of items from different sources. Some of the sources
I'm about to add IMAP email integration to one of our web applications (ASP.NET
I have three tables in MySQL that are related, yet not technically linked to
Well, here is a small problem. I am to design a web application database
The current project I inherited mainly revolves around one unnormalized table. There are some

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.