Im using the following structure:

User hasMany Listing
Listing hasMany Contacts
Listings hasAndBelongsToMany Articles
Articles hasMany Tags

When i delete a User or a Listing all their associated Listings and
Articles are successfully deleted. But not their Tags. Listings and
Articles are deleted because we are using 'dependent'=> true in the
hasMany Model Structure. But how can i delete the Tags of the Articles
associated? do i have to use deleteQuery to achieve that?
http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM

I was searching in Google and there is not tutorial or post related to
deleteQuery in HABTM associations.

An example will help us a lot.

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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