Open kernel64 opened 2 years ago
This should already be covered by the Grouping clause.
$subject = new Grouping(
'OR',
new Grouping(
'AND',
new Conditional('categorie', '=', 'informatique'),
new Conditional('stock', '<', 20)
),
new Grouping(
'AND',
new Conditional('categorie', '=', 'fourniture'),
new Conditional('stock', '<', 200)
),
);
You are right. Thank you @kwhat for the clarification.
Sametimes we need to write a query with parenthesis like this exemple :
So with this merge we will be able to write it like this :