Re: Automatically create record in a to-one relationship
Re: Automatically create record in a to-one relationship
- Subject: Re: Automatically create record in a to-one relationship
- From: Omar <email@hidden>
- Date: Tue, 28 Jun 2005 23:25:04 -0400
Yes, its setup properly, I can insert records just fine, its when I have
the relationship with the other table that the error occurs.
If I place the registeredObjects() after the saveChanges, it shows the
primary key.
I also put the unlock after the saveChanges() and I got the same deal.
I don't know what I could be doing wrong, any other ideas?
Thanks again,
Omar
Art Isbell wrote:
> On Jun 27, 2005, at 1:47 PM, Omar wrote:
>
>> NSLog (ERXNSLogLog4jBridge.java:38) - 2Registered Objects:
>> (<er.extensions.ERXGenericRecord pk:"null">)
>> NSLog (ERXNSLogLog4jBridge.java:41) - A fatal exception occurred: A
>> <b>Table1</b> must have a <b>Table2</b>.
>
>
> A null primary key doesn't look good. Do you have automatic
> primary key generation set up correctly for PostgreSQL?
>
> Aloha,
> Art
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden