In Yii2 how to display all records except one?

Hi all. In Yii2 how to display all records except one, which id I know?
All entries deduce this:
Blog::find()->all();
One like this:
Blog::findOne($id));
July 9th 19 at 10:07
1 answer
July 9th 19 at 10:09
Solution
Blog::find()->where(['not','id',$id])->all();
Yes, Yes! Thank you, not only with the reason of mistake, made a token != - petra_Little commented on July 9th 19 at 10:12
Blog::find()->where(['not', ['id' => $id]])->all(); - miller commented on July 9th 19 at 10:15

Find more questions by tags Yii