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 PROTECTED]                           (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 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