I need to execute a complex findAll query that that is case
insensitive. I have tried using lower() and ILIKE (note sure if this
exists in MySQL) in my conditions, but neither seem to work for me.

$conditions['OR'][] = array("lower(Listing.title)" => "LIKE %".
$term."%");
$conditions['OR'][] = array("Listing.title" => "ILIKE %".$term."%");

What can I do? Any advice appreciated!


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