|Aug 15, 2006, 10:44 AM||#1|
I have a to-many relationship from A to B and a to-many from B to A.
I use setvalue:forkey: to change the to-many AtoB, which works fine. Previously included links are removed, new links to A are added. However the links from A to B are not removed. So A still thinks it has a relationship with B, when it shouldn't. I thought the entire point of bidirectional relationships was to ensure data integrity, and to keep the relationships up to date. so that each side knows if it belongs to each other or not.
From the NSManagedobject class reference:
Given a collection object and a key that identifies a to-many relationship, relates the objects contained in the collection to the receiver, unrelating previously related objects if there were any.
How can I ensure that if a relationship in one direction is removed, the relationship in the other direction is also broken or removed?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Two Quick and unrelated iPod Questions||furryrabidbunny||iPod||0||Mar 17, 2007 01:11 AM|
|Two VERY unrelated lottery questions||nbs2||Politics, Religion, Social Issues||18||Nov 23, 2006 03:25 AM|
|Totally unrelated to Mac gaming: Halo 2||vraxtus||Games||24||Nov 11, 2004 07:30 PM|
|Monaco (mainly unrelated to Terminal)||syniac||General Mac Discussion||1||Nov 4, 2004 09:39 AM|
|two unrelated questions: Virtual PC and safari||jrr66||General Mac Discussion||6||Apr 27, 2004 04:46 PM|
All times are GMT -5. The time now is 11:13 PM.