On Dec 14, 10:18 pm, Dave Lancea <dlan...@gmail.com> wrote: > You can use the $or or $and operator to test multiple conditions of the > same name: > > $conditions = array( > '$or' => array( > array( > 'date' => array( > '$regex' => '/^arug/i', > ), > ), > array( > 'date' => array( > '$regex' => '/^bro/i', > ), > ), > ) > ); > > Note, the value of the '$or' key in the $conditions array is a normal, > zero-indexed array which contains two values: an associative array > containing a 'date' key. Confusing, I know.
Dave - did you read the code in the first post? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php