• 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: Own and Propagate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Own and Propagate


  • Subject: Re: Own and Propagate
  • From: James Cicenia <email@hidden>
  • Date: Mon, 17 Nov 2014 16:58:48 -0600


I Punted. Managed it explicitly myself.



On Nov 17, 2014, at 1:23 PM, Chuck Hill <email@hidden> 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@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.
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

References: 
 >Own and Propagate (From: James Cicenia <email@hidden>)
 >Re: Own and Propagate (From: Chuck Hill <email@hidden>)
 >Re: Own and Propagate (From: James Cicenia <email@hidden>)
 >Re: Own and Propagate (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: We need Watson!
  • Next by Date: Re: WebObjects application instances hanging - Deadlocks occurring
  • Previous by thread: Re: Own and Propagate
  • Next by thread: Copy EO. Practical Utilities?
  • Index(es):
    • Date
    • Thread