For testing my application I just wanted to empty an entire table for every request to see if the initial data flows in correctly, so I thought Model::delete(null) would do this for me, but it seems like it doesn't. So I was looking all over the Model class and the DboSource and I was unable to locate a function that would simply delete all items of the table corresponding to the Model.

So I'm really wondering if I'm just completely blind or if CakePHP could really be lacking a Model::deleteAll(...) function? I know I could use execute to do it, but it just seems like something useful to go in the Model.

Am I missing something? If not I'll post a feature request on trac ...

Best Regards,
Felix Geisendörfer aka the_undefined

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