Re: Fetching from related object
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.