Hello, the question in the title, in Yii, I made a loop from this line:

foreach($arr as $key => $value) { $criteria->join .= 'LEFT JOIN `products_attribute_value` '. $value .' ON (`'. $value .'`.`products_id`=`t`.`id`)'; } 

everything worked.

in Yii2 Criterion is not how to be? I did not find a solution in the dock

  • I would like to know more about the task. But it is not quite clear what the problem is and how you solve it. - VasyOk

1 answer 1

And I found

Query builder