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