opened
Dragonqos
username_0
During my own tests on api-platform/core 2.4@beta with Mongo I found a bug
```
request.CRITICAL: Uncaught PHP Exception ApiPlatform\Core\Exception\RuntimeException: "
The repository for "App\Document\Channel" must be an instance of "Doctrine\ODM\MongoDB\Repository\DocumentRepository"." 
at /vendor/api-platform/core/src/Bridge/Doctrine/MongoDbOdm/CollectionDataProvider.php line 63
```

**How to reproduce:**
Create a documentRepository and extend it from existed Doctrine\ODM\MongoDB\DocumentRepository class:

**How to fix:** 
Go to api-platform/core/src/Bridge/Doctrine/MongoDbOdm/CollectionDataProvider.php line 23

namespace **_Doctrine\ODM\MongoDB\Repository\DocumentRepository_** is wrong and should be replaced with **_Doctrine\ODM\MongoDB\DocumentRepository_**
MongoDB DocumentRepository not exists
issue
created
alanpoulain
username_1
I think you are using the wrong version of MongoDB ODM. Have you followed the documentation? https://api-platform.com/docs/core/mongodb/
comment
created
Dragonqos
username_0
My bad, seems you right. It would be good to add this to composer suggests)
comment
closed
alanpoulain
username_1
issue