Re: Nullify on relationship is not working
Re: Nullify on relationship is not working
- Subject: Re: Nullify on relationship is not working
- From: Logan Allred <email@hidden>
- Date: Mon, 26 Jun 2006 19:07:02 -0600
On Jun 26, 2006, at 6:02 PM, Paul Suh wrote:
Logan,
A few questions for you, to make sure I'm not missing the obvious.
1) Are you looking at this in the MyEntity objects in Java or are
you looking at this in the database tables?
database tables
2) Are you looking at this before or after a call to saveChanges()?
after saveChanges()
I'm also watching the SQL in the logs, and the correctly working many-
to-many calls all of the UPDATE ... SET att=NULL plus the DELETE ...
statements in the SQL, but the many-to-one above only generates the
single DELETE ... statement.
Both deletes are triggered by the same code in a reusable D2W component:
public WOActionResults delete() {
object().editingContext().deleteObject(object());
object().editingContext().saveChanges();
}
thanks,
Logan
_______________________________________________
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