GridView with MongoDb AR model -- Filtering by _id doesn't work

I’m using GridView with Mongo ActiveRecord model.

I want to filter it by _id and it doesn’t work, always returns “No results found.”

Filtering by other attributes of the model works fine.

Any ideas why it doesn’t work and how to fix it?

try:




$query->andfilterWhere([

            '_id' => new \MongoId($this->_id),

        ]);



Thank you!