Please read the release notes regarding LIKE and other SQL operators.
That should be:

$conditions = array("or"=>(array(
        'edifici LIKE %?%' => $searchText,
        'adreca LIKE %?%' => $searchText
)));

On Mon, 2008-06-16 at 03:07 -0700, leo wrote:
> Call me a misery, but I seem to be having more problems with RC1 than
> I had with Beta.
> 
> The following works as expected in Beta but invariably returns an
> empty set in RC1:
> 
> $conditions = array("or"=>(array('edifici' => 'LIKE %'.
> $searchText.'%', 'adreca' => 'LIKE %'.$searchText.'%')));
> $this->set('immobles', $this->paginate('Immoble',$conditions));



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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