Hi all,

i'm struggling with a complex find condition, containing
several Arrays in this fashion:

$conditions= Array(
                                "Article.type" => "6",
                                "and" => array(
                                                                
array("Article.text" => "LIKE %pasta%"),
                                                                ),

                                "or" => array(
                                                                
array("Article.text" => "LIKE %salami%"),
                                                                
array("Article.text" => "LIKE %pizza%"),
                                                                )
                                                                );

This works like a charm, but how can i make use of one (or more) sql
NOT LIKE
conditions, since

                                "not" => array(
                                                                
array("Article.text" => "LIKE %cheese%"),
                                                                ),

doesn't work. I get this error

Notice: Array to string conversion in /var/www/cake/cake/libs/model/
datasources/dbo_source.php on line 1342

thank you very much !

Jürgen


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