$query = MyModel::find()->where(['not in','attribute',$array]);
參考
- Yii2 : Active Record add Not In condition
- Adding a custom WooCommerce product type
- How to Set Up WooCommerce Demo Data
$query = MyModel::find()->where(['not in','attribute',$array]);
相关文章: