Re: Help! valueForKey does not follow relationships?
Re: Help! valueForKey does not follow relationships?
- Subject: Re: Help! valueForKey does not follow relationships?
- From: Art Isbell <email@hidden>
- Date: Fri, 11 Apr 2003 12:36:14 -1000
On Friday, April 11, 2003, at 11:46 AM, Scott Ellsworth wrote:
Does valueForKey or storedValueForKey on an EOEnterpriseObject follow
toMany relationships?
Yep. I use valueForKey(), but I don't see why storedValueForKey()
wouldn't work as well.
FWIW, printing out object shows, among other things,
suggestedCustomers =
"<com.webobjects.eocontrol._EOCheapCopyMutableArray 35cf9c
(<EOAccessArrayFaultHandler suggestedCustomers
_EOIntegralKeyGlobalID[Listing (java.lang.Integer)1]>)>".
So for this object, suggestedCustomers contains one object which
hasn't been fetched yet (it's a fault). Accessing the lastName
attribute should cause the fault to fire. Have you stopped execution
in the debugger after "customers" is set in getCombinedValue() to
examine "object" and its suggestedCustomers relationship?
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.