So depending on how you set those,  the function will either do a simple "truncate"/"delete from" or loop through all items matching the $conditions and then delete them and their related items.
I know how truncate works . That's why I said there should be some logic build into the deleteAll() function that would figure out which query type would be the most appropriate ...



Mika schrieb:
You don't get a conditional truncate. If you need conditions, you need
to use delete. Truncate is only used for deleting ALL the data in the
database (very quickly in some instanes).

See http://dev.mysql.com/doc/refman/5.0/en/truncate.html for the mysql
truncate command.




  

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to