There is also the function model->escapeField() e.g.:

$this->Article->escapeField('text')." NOT LIKE '%cheese%'"

A very useful function for those awkward SQL conditions.

~GreyCells

On Feb 28, 12:00 pm, "jyrgen" <[EMAIL PROTECTED]> wrote:
> i found the solution right after a posted my question !!
>
>                              "and not" => array(
>
> array("Article.text" => "LIKE %cheese%"),
>                                                                 ),
>
> thanks anyways :-)
>
> Jyrgen


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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