Re: removeToManyTarget and delete from ObjectContext

2016-06-22 Thread Lon Varscsak
Ah, okay, gotcha. -Lon On Wed, Jun 22, 2016 at 6:50 AM, Michael Gentry wrote: > Hi Lon, > > Removing an object doesn't do a delete. You also have to do a > context.deleteObject(..) if you want to delete it. The reason is so that > you can do something like this: > > order = // some existing o

Re: removeToManyTarget and delete from ObjectContext

2016-06-22 Thread Michael Gentry
Hi Lon, Removing an object doesn't do a delete. You also have to do a context.deleteObject(..) if you want to delete it. The reason is so that you can do something like this: order = // some existing order order.removeFromUnfilledItems(item); order.addToFilledItems(item); context.commitChanges(

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