> Only, unfortunately, I found out cake can't yeild expression like:
>
> sth NOT IN('a','b')
Yes it can, use
'not' => array('sth' => array('a', 'b'))
----------------------------------------------------------------
And you could write those conditions like this
> 'conditions'=>array(
> array( 'or' => array(
> array('Report.user_id' => $user_id),
> array('Report.user_id2' => $user_id)
> )),
> array('or'=>array(
> array('Report.del_flg' => 0),
> array('Report.status <>' => array('6s', '6r'))
> ))
> )
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---