Re: Fetching from related object
Re: Fetching from related object
- Subject: Re: Fetching from related object
- From: Deirdre Saoirse Moen <email@hidden>
- Date: Fri, 23 Apr 2004 16:03:54 -0700 (PDT)
On Fri, 23 Apr 2004, Randall Perry wrote:
> custInfo = ec.objectsWithFetchSpecification(custFetchSpec);
>
> Went to add a second fetch which grabs log entries for the past year by
> joining on custNo:
> Then I realized that custNo is a hidden key in EOModeler for both entities,
> so this can't be done without making the keys visible.
>
> There is a to-one relationship defined in EOModeler between the Log and
> CustView entities.
Do a To-Many in the other direction. If it's named logs:
custlogs = custInfo.logs(); (you'll have to regenerate the class to get
the method, but you can do it without a method as well)
--
_Deirdre http://deirdre.net
"Ideally pacing should look like the stock market for the year 1999, up
and up and up, but with lots of little dips downwards...."
-- Wen Spencer on plotting a novel
_______________________________________________
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.