W
W
WildJust2016-12-12 14:59:48
Yii
WildJust, 2016-12-12 14:59:48

How to work with MongoDB in Yii?

I try to run gii and it throws
MongoDB Exception - yii\mongodb\Exception
no such cmd: listCollections

Caused by: MongoDB\Driver\Exception\RuntimeException
no such cmd: listCollections

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Evgeny Akhmetov, 2016-12-12
@asperin2

And what extension are you using and show how you connected it?

E
Eugene, 2016-12-23
@Jekshmek

https://github.com/yiisoft/yii2-mongodb/blob/maste...

S
Stanislav Romanov, 2017-04-21
@Kaer_Morchen

Maybe you have a non-standard exchange protocol and the adapter and serializer do not see the messages field from the backend response?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question