https://stackoverflow.com/questions/31557302/yii2-how-to-perform-where-a... - по поводу OR и AND, как чередовать
http://www.webapplex.ru/rabota-s-bazoj-dannyix-v-yii-2.x-(chast-1)
https://stackoverflow.com/questions/40786298/yii2-activerecord-multiple-...
View the discussion thread.