Re: Question about Core Data Inverse Relationships
Bennett Smith <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
Forgot to attach the diagram: On Sep 19, 2009, at 9:09 PM, Bennett Smith wrote: > Hello > > I am stuck on a problem that I just can't figure out. I am very new > to Core Data so it might just be that I am going about this wrong. I > want to setup a model for something like this: > > > The currentAttributes and oldAttributes relationships in User are > configured as "to-many relationships." My problem is in figuring out > how to set an inverse relationship in the Attribute class. It seems > like I cannot have an inverse relationship that points back to User > for all Attribute entities in this case. (At least I can't figure > out how to do it in Xcode.) > > The purpose for this model is to allow me to track a set of > attributes associated with a user and to keep track of any changes > in the attribute values over time. A change is defined as replacing > the value associated with the attribute or deleting an attribute. I > am open to other suggestions on how to achieve this goal using Core > Data. > > Thanks > > -- Bennett > _______________________________________________ > MacOSX-dev mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/macosx-dev _______________________________________________ MacOSX-dev mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-dev