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