Hello, everyone! The question arose, as in Yii2 to build multi-query, for example
$query = Client::find()->where(['like', 'clientName', $q])->andWhere(['responsibleUser' => $someId]);
But, for example, if someId is empty and the client does the filtering, as to make sure that all parts gathered (using if else, che...
asked April 18th 20 at 13:13