for something simple like this, you could use an IN ... find('all',
array('conditions'=>array('SomeModel.field'=>array($email1,
$email2)...

On Sep 21, 8:32 pm, . <[EMAIL PROTECTED]> wrote:
> Hi
>
> How would I do an OR in the conditions, such as the following? What's the
> correct syntax? Thanks
>
> $messages = $this->Message->find('all',
>    array('conditions'=>array('Email.email'=>$email1 OR
> 'Email.email'=>$email2)));
--~--~---------~--~----~------------~-------~--~----~
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