$thing = $this->Thing->find('all', array(
  'conditions' => array('title' => 'REGEXP ^test[0-9]+$')
));

Will generate

SELECT `Thing`.`id`, ... FROM things AS `Thing` WHERE title REGEXP
'^test[0-9]+$'

which works fine for me. Not sure what version this was added in
though.

On Jan 11, 3:09 pm, fr3nch13 <[EMAIL PROTECTED]> wrote:
> off hand, does anyone here know if cakephp supports REGEXP inherently
> without having to explicitly call an sql string?
>
> http://dev.mysql.com/doc/refman/5.0/en/regexp.html
--~--~---------~--~----~------------~-------~--~----~
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