I Punted. Managed it explicitly myself.
> On Nov 17, 2014, at 1:23 PM, Chuck Hill <[email protected]> wrote: > > And Propogate Primary Key set on the App? To-one, mandatory relationship? > > > On 2014-11-17, 11:17 AM, "James Cicenia" wrote: > > 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 protected] >> <mailto:[email protected]>> 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. >> Webobjects-dev mailing list ([email protected] >> <mailto:[email protected]>) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com >> <https://lists.apple.com/mailman/options/webobjects-dev/chill%40gevityinc.com> >> >> This email sent to [email protected] <mailto:[email protected]>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
