Re: OEF delete cascade not working
Re: OEF delete cascade not working
- Subject: Re: OEF delete cascade not working
- From: Guido Neitzer <email@hidden>
- Date: Wed, 8 Aug 2007 15:51:47 -0600
On 08.08.2007, at 15:20, Guilherme melo wrote:
none of the delete cascade rules are working in my project , deny
and no action works fine , is there anyway for me to debug this , i
am logging the sql statements and it never tries to delete the
second entity , is there some way to know why?
Are you sure you have set it up correctly? EOF normally traverses the
relationship first, deletes the stuff from the relationship (for
cascade) and then deletes the object itself.
So you need the relationship in your EOModel with the delete rule.
You won't see a "delete from foo where ... cascade" and even the
relationship in the database is setup without the delete rule. You
have to keep that in mind when you remove relationships from the
model - that will result in errors thrown in the database.
cug
_______________________________________________
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