How can I execute this query using orm in fuelPHP?
SELECT * FROM user when a=1 and b=2 and (c=1 or d=2 or e=3)
I don't know how to implement this: and (c=1 or d=2 or e=3)
I am stuck at:
$where = array()
$where[] = array('a'=>1,'b'=>2);
//Adding c,d,e column in $where[]
I dont know how to combine AND and OR
$query = Model_User::find('all', array(
'where' => $where
));)
Is there any way to accomplish this?