|
Hey, well I know that Model::delete(null) could lead to a couple of issues, but since it was the only delete function I found, that was one of the ways I tried it to do the truncate for me. I think we should have a function called deleteAll (like you suggested) that has $conditions and $cascade as parameter. 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. What do you think? AD7six schrieb: I am pretty glad that delete/null is NOT tranlated as a truncate statement - would be pretty easy to do by mistake, and if a user has access to the delete function, doesn't mean they should be able to wipe out the table :). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- Re: Delete multiple Rows / Empty Table? Larry E. Masters aka PhpNut
- Re: Delete multiple Rows / Empty Tabl... Felix Geisendörfer
- Re: Delete multiple Rows / Empty ... John David Anderson (_psychic_)
- Re: Delete multiple Rows / Em... Felix Geisendörfer
- Re: Delete multiple Rows / Empty ... Mika
- Re: Delete multiple Rows / Em... Felix Geisendörfer
- Re: Delete multiple Rows ... AD7six
- Re: Delete multiple ... AD7six
- Re: Delete multiple ... Larry E. Masters aka PhpNut
- Re: Delete multi... AD7six
- Re: Delete multiple Rows / Empty Table? Felix Geisendörfer
