Re: Order of operations?

2016-06-21 Thread Aristedes Maniatis
On 22/06/2016 11:47am, Lon Varscsak wrote: > I’m using Sybase where it doesn’t have deferred constraints and it seems > like Cayenne is doing INSERTS first, but in my case, I want to do DELETES > -> UPDATES -> INSERTS. Where can I control this? I don't know of any approach to solve this, however

Order of operations?

2016-06-21 Thread Lon Varscsak
I’m using Sybase where it doesn’t have deferred constraints and it seems like Cayenne is doing INSERTS first, but in my case, I want to do DELETES -> UPDATES -> INSERTS. Where can I control this? -Lon

removeToManyTarget and delete from ObjectContext

2016-06-21 Thread Lon Varscsak
Does removeToManyTarget cause the object to be deleted from the context if the “to dep key” box is checked from the master->detail? I’m removing a detail object where this configuration is set, but it’s triggering an update and not a delete. Thanks, Lon