Yii2 : Active Record add Not In condition

Well all query operands seems now merged within in yii\db\QueryInterface::Where() per documentation
an In condition can now be added using something like

$query = MyModel::find()->where(['attribute'=>$array]);

for a not In condition it is slightly different format

$query = MyModel::find()->where(['not in','attribute',$array]);

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)