I need to query database entries that are "(A OR B) AND (X OR Y)". My
$conditions currently looks like this:
$conditions[0]['OR'] = array('Listing.expiration' => 0,
'Listing.expiration' => "> ".mktime());
$conditions[1]['OR'] = array("Listing.title" => "LIKE %".$term."%",
"Listing.description" => "LIKE
%".$term."%");
The problem, of course, is that I am overriding "'Listing.expiration'
=> 0" with "'Listing.expiration' => "> ".mktime()". How can I
restructure this?
Thanks for any suggestions!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---