Re: Own and Propagate
Re: Own and Propagate
- Subject: Re: Own and Propagate
- From: James Cicenia <email@hidden>
- Date: Mon, 17 Nov 2014 13:17:03 -0600
I was. Took that out of the init, and I still get the same error on save.
I do the basic App newApp = (App)EOUtilities.createAndInsertInstance(ec, "App");
Then I do a basic save without touching the owned relationship
app.editingContext().saveChanges();
And I get the SQL error about no appID being set. I have appID set as mandatory in the config table.
On Nov 17, 2014, at 1:08 PM, Chuck Hill < email@hidden> wrote:
Are you creating a Config in your code? EOF will create it for you. If you create it in code, you end up with two, one of which is disconnected.
Chuck
On 2014-11-17, 11:00 AM, "James Cicenia" wrote:
I am trying to use the own and propagate attributes on my model.
I have a relationship modeled that way.
App — Config
App: primaryKey is set as ‘id'
Config: primaryKey is set as ‘appID'
However, when I save my context I get a SQL error where it is trying to insert/save the Config without an appID ?
It doesn’t seem to propagate the key in SQL.
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription:
|
_______________________________________________
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