Saturday, November 1, 2008

Model->updateAll ignores ORDER and LIMIT

Hi,

I'm having some troubles updating records. I need to be able to define
the ORDER and LIMIT for the update, but the method updateAll appears
to only accept conditions.

updateAll is created the LEFT JOIN statements for my other models, but
i need to only update the first 100 records ordered by field value.

Any ideas on how to do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: