Re: one-to-many relationship question

2011-09-08 Thread Cheong Hee (Gmail)
This is what being described in the documentation: Owns Destination You can set a source object as owning its destination objects. When a source object owns its destination objects and you remove a destination object from the source object's relationship array, you're also deleting it from th

Re: one-to-many relationship question

2011-09-08 Thread Michael Gargano
Hi Ramsey, Thanks! It was the deferred assignment. I had added those FKs myself (aka not using migration), I didn't realize that deferment was how assignment order was being guaranteed (or not guaranteed for that matter). Thanks again. -Mike On Sep 8, 2011, at 4:18 PM, Ramsey Gurley

Re: one-to-many relationship question

2011-09-08 Thread Ramsey Gurley
Hi Mike, That's a different question/answer entirely (^_^) You need to order your adaptor operations if your database can not do deferred foreign key constraints. You can do order your ops with a property: com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate.active=true Keep in mind th

Re: Entity Validation Exception Question

2011-09-08 Thread Ramsey Gurley
Hi Mike, ERXValidationFactory.ExceptionDelegateInterface ERXValidationFactory.setDefaultDelegate If your exception doesn't have a context (not using d2w, not setting it yourself when the exception is caught, etc) then you can override the delegate to provide a context. Ramsey On Sep 8, 2011,

Re: one-to-many relationship question

2011-09-08 Thread Michael Gargano
Don't worry you're not losing me. :) Basically, this is what's happening I have entity A1 with single table inheritance children A2 and A3 A1 has <->> B1, which is also passed on to the children I'm creating a new A3 instance and a bunch of new B1 instances, I add

Re: Entity Validation Exception Question

2011-09-08 Thread Michael Gargano
no D2W, just what I'm catching in validationFailedWithException in the component -Mike On Sep 8, 2011, at 3:16 PM, David Holt wrote: D2W ERModernLook?? On 2011-09-08, at 12:00 PM, Michael Gargano wrote: Hi all, When an EO is being validated, the exception kicked back has ‘?’s in it. I’m as

Re: Entity Validation Exception Question

2011-09-08 Thread David Holt
D2W ERModernLook?? On 2011-09-08, at 12:00 PM, Michael Gargano wrote: > Hi all, > > When an EO is being validated, the exception kicked back has ‘?’s in it. I’m > assuming this is where they are expecting us to place the appropriate article > like (‘a’ vs. ‘an’) or something that is supposed

Re: one-to-many relationship question

2011-09-08 Thread Paul D Yu
This is what I know. Owns destination on a toOne relationship means every time a master record is created, a "child" record will also be created. The primary key of the child will be set to the primary key of the master. Cascade delete means when you delete the master record, the child record(

Entity Validation Exception Question

2011-09-08 Thread Michael Gargano
Hi all, When an EO is being validated, the exception kicked back has ‘?’s in it. I’m assuming this is where they are expecting us to place the appropriate article like (‘a’ vs. ‘an’) or something that is supposed to be pluralized. Is there a good way to handle this or do I just need to do a f

one-to-many relationship question

2011-09-08 Thread Michael Gargano
Hi all, Quick question, does delete on cascade imply owns destination? Also, does checking owns destination force the insertion of the destination objects after the insertion of the source entity? I think David LeBer answered this for me once, but I forgot. Thanks. -Mike ___

Re: Release of bunch of slides from WOWODC 2011

2011-09-08 Thread Denis Frolov
Thanks, Pascal and all involved! PS: I think it wouldn't hurt to add links to RSS feed and community program to emails like this. Frankly, I couldn't find the RSS link on wocommunity.org site as well. Denis On Wed, Sep 7, 2011 at 10:56 PM, Pascal Robert wrote: > Hi everyone, > > We decided to r