How to exclude values from a database query in Yii2. For example:
$User->find()->where(['<>', 'name', 'admin'])->all(); Exclude 'admin' from the 'name' column
But if all the same is written in the form of an array:
$User->find()->where(['<>', 'name', ['admin', 'someUser']])->all(); An exception will already be raised.