Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
EntityOne has a one-to-one relationship with EntityTwo
therefore i should be able to go something like
Code:
entityOne.relatedToEntityTwo = entityTwo
however i get an error printed out to the console saying it can't create a set from entityTwo
so i tried giving entityOne.relatedToEntityTwo a set that contains just one instance of EntityTwo
and it prints out an error saying it's trying to call an unrecognized selected call managedContextObject on NSSet.

so... it wants a managed object but it wants it as a set??
the two classes that were created from the model diagram mention nothing about sets and the model diagram has no such to-many-relationships

I will note that there used to be a to-many-relationship where EntityOne contained many EntityTwo, but not now.
I cleaned the targets as well to make it compile from scratch but it still crashes
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.