Re: $condition and OR

2012-04-09 Thread JonStark
Thanks a lot, it worked ! Le lundi 9 avril 2012 12:22:56 UTC+2, JonStark a écrit : > > Hello every one. > > I'm stuck with a little piece of code : > > $condition = array('User.role' =>* 'admin'||'author')*; > $this->set('users', $this->paginate('User', $condition)); > > It seems that OR (*||)

Re: $condition and OR

2012-04-09 Thread AD7six
On Monday, 9 April 2012 12:22:56 UTC+2, JonStark wrote: > > Hello every one. > > I'm stuck with a little piece of code : > > $condition = array('User.role' =>* 'admin'||'author')*; > $this->set('users', $this->paginate('User', $condition)); > > It seems that OR (*||) *Isn't working with array

$condition and OR

2012-04-09 Thread JonStark
Hello every one. I'm stuck with a little piece of code : $condition = array('User.role' =>* 'admin'||'author')*; $this->set('users', $this->paginate('User', $condition)); It seems that OR (*||) *Isn't working with array... but I have a 3 role blog, and I want to regroup authors and admins o