I want to create an activeQuery using model::find()->where...
that should generate sql like one below ( nevermind the logic ).
No joins, just a lot of where conditions for single table. I guess it should be simple and I'm just missing somewhere.
I'm not able to figure out how to create such nested where conditions. Any hints?
select * from article where
(
(site="domain.com" AND service="electronics" AND source="reader" AND tag like "%" AND marker like "%" )
OR
(site="domain.net" AND service="electronics" AND source like "%" AND tag like "%" AND marker like "%" )
)
AND NOT
(
(site="domain.com" AND service="electronics" AND source like "%" AND tag like "%" AND marker like "%" )
OR
(site="domain.us" AND service="electronics" AND source like "%" AND tag like "%" AND marker like "%" )
)