Or...
UPDATE snide_comments_by_developers SET count = count + 1 WHERE developer = "nate" nate-23 wrote: > > > On Aug 23, 10:17 pm, Dani <[EMAIL PROTECTED]> wrote: >> Wouldn't it be cool if updateAll had a validate parameter just like >> save? > > Hmm.... nope, not really. > >> By the way, what's the purpose of updateAll() if it's not save()-ing a >> lot of rows at once? > > The difference is subtle but important. For example, try doing this > with save() : > > UPDATE annoyances SET count = count + 1 WHERE description = "People > second-guessing me" > >> Happy coding! >> >> On Aug 23, 3:40 pm, nate <[EMAIL PROTECTED]> wrote: >> >> > On Aug 23, 1:29 pm, Nico <[EMAIL PROTECTED]> wrote: >> >> > > I wanted to use Cake 1.2's validation (Model::validate) but it turns >> > > out that Model->updateAllcalls directly db->update without doing any >> > > validation whatsoever. Now I want to know if there are any plans for >> > > including validation support onupdateAll >> >> > Probably not. The purpose ofupdateAll() is quite different from that >> > of save(). > > > > > > -- View this message in context: http://www.nabble.com/1.2-updateAll-does-no-validation-tf4318871.html#a12360055 Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
