Customer::find()->where(['<>','customer_id', '7'])->all()
Currently the code above allows me to find all the customer where their customer id is not 7. Now, I want to find all where customer_id is not 7 order by customer id = 6 desc. I know that i can do taht in mysql using: SELECT * FROM mydatabase.customer_id where customer_id <> 7 order by customer_id = 5 desc; but how can i do that with yii2?
