Comment exécuter cette requête en utilisant ORM dans FuelPHP:FuelPHP ORM multiples ET, OU requête
SELECT * FROM user when a=1 and b=2 and (c=1 or d=2 or e=3)
Je ne sais pas comment mettre en œuvre cette partie and (c=1 or d=2 or e=3)
Juste coincé dans:
$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
));)
Y a-t-il un moyen d'accomplir cela?
Remercier à l'avance