Answer the question
In order to leave comments, you need to log in
How to join query with table in Yii2?
How to join in query by INNER JOIN with table 'photo' by 'id_product'?
$model = Product::find()->where(['popular'=>'1'])->all();
Answer the question
In order to leave comments, you need to log in
Product::find()
->innerJoin('photo', 'photo.id_product = product.id')
->where(['popular'=>'1'])
->all();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question