Saturday, November 1, 2008

Re: Model->updateAll ignores ORDER and LIMIT

Are there any helper classes for creating my own SQL statements?

There's no helper class for creating SQLs (I hope I got what you meant).

But you can certainly execute any custom SQL from your model class using the model method query().
Find it here in the doc, http://book.cakephp.org/view/456/query

On Sat, Nov 1, 2008 at 9:40 PM, Mathew <nfoscarini@yahoo.com> wrote:

Really, that's to bad. Good thing I'm using MySQL :)

Are there any helper classes for creating my own SQL statements?




--
Anupom Syam
http://syamantics.com/

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