Re: mandatory relatoinship preventing deletion?
Re: mandatory relatoinship preventing deletion?
- Subject: Re: mandatory relatoinship preventing deletion?
- From: Chuck Hill <email@hidden>
- Date: Tue, 21 Oct 2003 11:16:22 -0700
- Organization: Global Village Consulting, Inc.
I've seen things like this before from failed saves and from not
locking editing contexts. Particularly failures from deletes that
failed validation, but errors at the adaptor level *may* also cause
this. I think the root cause was the ec rolling back the undo stack
too far.
What seems to be happening is the nullify delete rule is nulling the
department and then the object is being re-validated for save.
Or, perhaps, you have a nullify delete rule when you should have no
action.
That is all I can think of now.
Chuck
email@hidden wrote:
[demime could not interpret encoding binary - treating as plain text]
Having a relationship set to 'mandatory' shouldn't prevent deletion, should it?
I have two entities, which I'll call Employee and Department. Employee
has a mandatory to-one to Department. When I try to delete an
Employee.... I get a validation exception saying "the department property
of Employee must have a Departmetn assigned." Huh? But I'm trying to
delete it. And it did have a Department assigned before I deleted it. I
don't get it.
--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.