Guido Neitzer wrote:
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

cug

The relationship is set as :

EntityA <----deleteCascate---->EntityB<<---NoAction--->EntityC
the relationship between A and B is two way ( both cascade and mandatory )
that should work right ?


Guilherme
_______________________________________________
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