Re: Help! valueForKey does not follow relationships?
Re: Help! valueForKey does not follow relationships?
- Subject: Re: Help! valueForKey does not follow relationships?
- From: Scott Ellsworth <email@hidden>
- Date: Fri, 11 Apr 2003 18:19:28 -0700
Resend of formerly longer message:
Hi, Art.
Thanks much for the reply.
On Friday, April 11, 2003, at 03:36 PM, Art Isbell wrote:
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.
Noted. I shall switch to valueForKey at first op.
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?
That was what I had thought.
I set a breakpoint in project builder, executed the program, but it did
not stop on my breakpoint.
I did print out object again after the set to see if it was no longer a
fault, and got the following before:
suggestedCustomers =
"<com.webobjects.eocontrol._EOCheapCopyMutableArray d1258b
(<EOAccessArrayFaultHandler suggestedCustomers
_EOIntegralKeyGlobalID[Listing (java.lang.Integer)1]>)>";
and after:
suggestedCustomers =
"<com.webobjects.eocontrol._EOCheapCopyMutableArray d1258b
(<EOAccessArrayFaultHandler suggestedCustomers
_EOIntegralKeyGlobalID[Listing (java.lang.Integer)1]>)>";
but after valueForKeyPath,
suggestedCustomers = ()
I am now a bit confused...
Scott
_______________________________________________
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.