Solved (for me) by doubling the parentheses:

    $tmp = $this->Cookie->find('all', array(
      'conditions' => array(),
      'recursive' => -1,
      'order' => array('((Cookie.rating<=1)) DESC', 'Cookie.rating
DESC')
    ));

Generates SQL:

SELECT [...] FROM `cookies` AS `Cookie` WHERE 1 = 1 ORDER BY
((`Cookie`.`rating`<=1)) DESC, `Cookie`.`rating` DESC

(rev. 7145)

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

Reply via email to