Nullify on relationship is not working
Nullify on relationship is not working
- Subject: Nullify on relationship is not working
- From: Logan & Rebecca Allred <email@hidden>
- Date: Mon, 26 Jun 2006 17:40:49 -0600
I'm probably missing something obvious, but the nullify on my
relationship is not working the way I expected.
I have a many-to-one relationship from MyEntity <<---> MyEntityType.
Both sides of the relationship are set to Optional and Nullify,
though the back relationship from MyEntityType to MyEntity is not a
class property. When I delete an instance of MyEntityType, I expect
that all of the instances of MyEntity that are related to that
MyEntityType will have their myEntityTypeId set to null. But instead
it just deletes the MyEntityType and leaves instances of MyEntity
with dangling references.
Certainly I can just manually nullify the relationship as well, but
I'd like to do it the correct way. Am I misunderstanding how nullify
should work, or am I doing something slightly wrong? I have a many-to-
many in the same application that is properly nullifying everything
correctly when I delete one side.
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