Like I said on my previous email as long as:

1. You have the model relationship defined.
2. When defining the models from origin -> destination, the relationship in
origin is set to dependent.
3. You call del() on origin (default value for cascade is true)

Then you should be good to go.

If cascading is not working set DEBUG to 2 and paste the SQL statements.

-MI

---------------------------------------------------------------------------

Remember, smart coders answer ten questions for every question they ask. 
So be smart, be cool, and share your knowledge. 

BAKE ON!

blog: http://www.MarianoIglesias.com.ar


-----Mensaje original-----
De: [email protected] [mailto:[EMAIL PROTECTED] En nombre
de [EMAIL PROTECTED]
Enviado el: Domingo, 18 de Febrero de 2007 10:02 p.m.
Para: Cake PHP
Asunto: Re: How many levels will del with cascade go?

So I looked at the cake source, and it looks as though the del method
calls __deletehasmany rather than recursively calling del on the
various objects.  So I am guess that in order to do what I want I
should just put something in my beforeDelete().


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to