Re: Nullify on relationship is not working
Re: Nullify on relationship is not working
- Subject: Re: Nullify on relationship is not working
- From: Paul Suh <email@hidden>
- Date: Mon, 26 Jun 2006 20:02:19 -0400
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?
2) Are you looking at this before or after a call to saveChanges()?
3) If you are you looking at the Java objects, are you looking at the
myEntityTypeId attribute or are you looking at the value of the
myEntityType relationship?
--Paul
Paul Suh
http://www.ps-enable.com/
email@hidden (240) 672-4212
On Jun 26, 2006, at 7:40 PM, Logan & Rebecca Allred wrote:
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.
_______________________________________________
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