• 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: Fetching from related object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching from related object


  • Subject: Re: Fetching from related object
  • From: Arturo PĂ©rez <email@hidden>
  • Date: Sun, 25 Apr 2004 19:40:21 -0400

On Apr 25, 2004, at 3:26 PM, Randall Perry wrote:


So, you fetch a CustInfo as above. Now, how do you get the Log objects
associated with it? The easiest best performing way is to do
NSArray arrayOfLog = (NSArray)custInfo.valueForKey("logEntries");



Tried the code above: logInfo = (NSArray)custInfo.valueForKey("Log");

It runs ok but returns an empty array.

Seems that the relationship is improperly defined. If your relationships are improperly defined then WO/EOF will misbehave in all sorts of really incredibly irritating and painful ways. Would you care to elaborate on those two tables and the EOF entities you've defined on them?


----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
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: Fetching from related object
      • From: Randall Perry <email@hidden>
References: 
 >Re: Fetching from related object (From: Randall Perry <email@hidden>)

  • Prev by Date: Re: Default attribute NSValidation override?
  • Next by Date: Creating an EOEditingContext object
  • Previous by thread: Re: Fetching from related object
  • Next by thread: Re: Fetching from related object
  • Index(es):
    • Date
    • Thread