I'm not sure if this was an intended change, so we'll see what happens
to your ticket.  But to get the query you want just put the 'or' keys
inside another array.

$conditions = array(
  'NOT' => array(..expiration...),
  array( 'OR' => array(...like $term...) ),
  array( 'OR' => array(...like $term2...) )
);

To me this makes sense, as in the query you want each of these three
conditions joined by AND, but the latter two conditions to have OR
inside brackets.


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

Reply via email to