I want to build the following query
Where (name =‘a’ or name=‘b’) AND (age>8 and age <90)
When I build this with
$query->andWhere and $query->orWhere
I seem to fail on the nesting of the queries… any suggestions
I want to build the following query
Where (name =‘a’ or name=‘b’) AND (age>8 and age <90)
When I build this with
$query->andWhere and $query->orWhere
I seem to fail on the nesting of the queries… any suggestions
I really hate when that happens… pressing post and then having a brainwave and fixing it… Sorry about that
$query->andWhere( ["or", …
solved it