Saying I want to convert the following SQL query into ElementCriteriaModel:
SELECT * FROM users WHERE fieldA = 1 AND (fieldB = 1 or fieldC = 1)
I can't find a way in ElementCriteriaModel to do so.
{% craft.users({
fieldA: 1,
fieldB: 1,
fieldC: 1, // where can we put the 'or' filter?
}) %}
I can do this using DbCommand, but just curious if there's anyway we can do that via ElementCriteriaModel?