• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help! valueForKey does not follow relationships?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Help! valueForKey does not follow relationships?
      • From: Scott Ellsworth <email@hidden>
References: 
 >Help! valueForKey does not follow relationships? (From: Scott Ellsworth <email@hidden>)

  • Prev by Date: naming pages
  • Next by Date: Re: naming pages
  • Previous by thread: Help! valueForKey does not follow relationships?
  • Next by thread: Re: Help! valueForKey does not follow relationships?
  • Index(es):
    • Date
    • Thread