Where in active record

I have active record like this
->where([‘id_surat’=>$model->id_surat])
->andWhere([‘in’, ‘status_approval’, [1,2]])

Can I make two where in single where like this?
->where([[‘in’, ‘status_approval’, [1,2]], [‘id_surat’=>$model->id_surat]])
when I try this I got error

You need to use and just like it’s mentioned in the Guide. Why is no one reading the documentation?

1 Like