Is it possible to make WHERE IN condition with active record? I am going through documentation, but I can't find this case. I need to perform this query and return count value.
This is the method I am using for now:
public function static findProductsOnSale($ids)
{
return $this->find()->where(['product_id' => $ids])->count();
}