Yii2 Where In

[Solved] Yii2 Where In | Php Frameworks Yii - Code Explorer | yomemimo.com
Question : yii2 where in

Answered by : purple-team

public function static findProductsOnSale($ids)
{ return $this->find()->where(['in', 'product_id', $ids])->count();
}

Source : https://stackoverflow.com/questions/31271499/yii2-where-in-with-active-record | Last Update : Fri, 08 Apr 22

Answers related to yii2 where in

Code Explorer Popular Question For Php Frameworks Yii