Re: correct syntax for an OR

2008-09-21 Thread teknoid
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

Re: correct syntax for an OR

2008-09-21 Thread David C. Zentgraf
http://book.cakephp.org/view/74/Complex-Find-Conditions On 22 Sep 2008, at 09:32, . 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'=>$ema