• 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: 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.


References: 
 >Fetching from related object (From: Randall Perry <email@hidden>)

  • Prev by Date: Fetching from related object
  • Next by Date: Re: Fetching from related object
  • Previous by thread: Fetching from related object
  • Next by thread: Re: Fetching from related object
  • Index(es):
    • Date
    • Thread