Note that there are some explanatory texts on larger screens.

plurals
  1. POSaving various core data entities of the same type with multiple different relationships?
    primarykey
    data
    text
    <p>I've been trying to debug this for 2 hours, have to sleep. First, I've searched and found many similar posts with they keywords: many entities same type and this one: <a href="https://stackoverflow.com/questions/4985075/core-data-inverse-relationship-for-two-relationships-with-same-type">Core Data: inverse relationship for two relationships with same type</a></p> <p>But to no avail. Here's what's happening: I have a data model with two types. For example, I have a Person, and that person can have 4 lists of emails. The email type is its own thing, so I make the person store 4 distinct sets (relationships) to each list.</p> <p>Basically, when I retrieve one set, it grabs all of them. All 4 lists are now 1, and it doesn't seem to matter how I set the inverses. Actually these changes somehow caused the entire thing to not save anything, all nil objects when downloaded. Previous to this, it worked fine (except for shoving all 4 lists into one set). All I updated was the data model for relationships. I may have exported the files in the wrong order, but do not know if that's related.</p> <p>I simply can't find the keyword combination to find if someone's asked this before. I don't see how it wouldn't come up, what I'm doing is basic abstraction. I keep thinking I overlooked one box.</p> <p>To summarize, I have a person, and person has 2 lists. I add them similar to this: person.friendEmailsList = downloadedEmailsFromFriends; person.businessEmailsList = downloadedBusinessEmails;</p> <p>so later, I access person.friendEmailsList (using the correct core data call, of course), and instead of getting just friends, I get everything... friends, businesses everything</p> <p>Any suggestions would be appreciated</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload