• 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: Mon, 26 Apr 2004 10:20:24 -0400

On Apr 26, 2004, at 10:03 AM, Randall Perry wrote:

I rebuilt my model from scratch just in case I had messed something up with
it.


There are 2 tables I imported from an existing PostgreSQL db: cust_view and
log, which EOModeler named CustView and Log.


CustView's pk is custNo. Log's pk is logNo and it has the foreign key
custno.

I created a relationship by using diagram view, control-dragging from
CustView custNo to Log custNo which created a to-many link from CustView to
Log called 'logs', and a to-one link from Log to CustView called 'custview'.
Consistency check on model passes. I reimported the model and java class
files to my project.


So I changed the fetch to this:
    logInfo = (NSArray)custInfo.valueForKey("logs");

Again, it runs without error but returns an empty array.


Do you know how to turn on SQL logging? Could you do that and take a look at the sql being generated?
Also, are you using the pgSQL plug-in?
----
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: method lookup order performance benefit?
  • Next by Date: Re: add gif file to WO project in WOLips
  • Previous by thread: Re: Fetching from related object
  • Next by thread: Re: Fetching from related object
  • Index(es):
    • Date
    • Thread