Message info
To:CakePHP From:ingcara Subject:Re: Problems with Find (\'all\') Date:Wed, 28 Mar 2012 23:34:16 -0700 (PDT)

Thanks Marcus, I tried another way and its working now:

$dados = $this->Usuario->find('all',
'nome_usuario LIKE'=>'%'.$this->data['valor'].'%',
'nascimento_usuario LIKE'=>'%'.$this->data['valor'],
'email_usuario'=>$this->data['valor'] ,
'order'=>array('nome_usuario ASC'), 'limit'=>100));

Thanks for your help!!!

On 28 mar, 09:43, Marcus James <> wrote:
> Hi,
> I think your condition clause is not properly written.
> Try this
> $dados = $this->Usuario->find('all', array('conditions'=>array(
> 'OR'=>array(array('nome_usuario
> LIKE'=>'%'.$this->data['valor'].'%',
> 'ocupacao_usuario'=>$this->data['valor']),array('religiao_usuario'=>$this-> data['valor']),array('email_usuario'=>$this->data['valor'])))));
> Enjoy,
> Marcus

Our newest site for the community: CakePHP Video Tutorials
Check out the new CakePHP Questions site and help others with their CakePHP related questions.

To unsubscribe from this group, send email to For more options, visit this group at