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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to