Hi Everyone, I would like to switch to using Cake, but looking at http://manual.cakephp.org/view/66/models , I don't see an obvious way to ask for a calculated ordered list from a database - and these are indispensable to our website. Suppose, for example, one wanted the 10 healthiest cakes: the SQL query might look like this:
select price, name, 2 * protein + log(fibre) - 10 * salt - sugar - fat as health order by health limit 10 Can somebody tell me how we would be able to do such lists in Cake, please? btw - although the above SQL query is obviously contrived, we really do use mathematical functions like log() in making our ordered lists. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
