| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jul 2, 2009, at 6:26 AM, Gustavo Pizano wrote:
RIght. If you aren't flattening, then when you call wg.toTranslationSets() all you are going to get are EOs that represent the join table (they are valid EOs, they just don't have much "business" meaning. Since the join table EOs will have to-one relationships to TranslationSet and WG, then you have to call the relationship to get the actual object you are looking for. So, the exact syntax would be NSArray<TranslationSet> aux = wg.toTranslationSets().valueForKey(WGxTS.TranslationSet_KEY); Of course, if you turn flattening back on, it would simply be: NSArray<TranslationSet> aux = wg.translationSets(); Much cleaner and easier to understand. Actually, if you don't turn flattening back on, I'd manually flatten it by writing cover methods for the relationships such as (on the WG entity): public NSArray<TranslationSet> translationsSets() { NSArray<TranslationSet> aux = wg.toTranslationSets().valueForKey(WGxTS.TranslationSet_KEY); } Dave
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden This email sent to email@hidden
| References: | |
| >Fetching the data of a many-to many relationShip (From: Gustavo Pizano <email@hidden>) | |
| >Re: Fetching the data of a many-to many relationShip (From: David Avendasora <email@hidden>) | |
| >Re: Fetching the data of a many-to many relationShip (From: Gustavo Pizano <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.