Skip to content

api platform and symfony 4 and mongodb : The repository for "App\Document\User" must be an instance of "Doctrine\ODM\MongoDB\Repository\DocumentRepository". #2617

Description

@Belssem

i created a document User and i'm using api platform but when i try to navigate to /api/users i got this error
The repository for "App\Document\User" must be an instance of "Doctrine\ODM\MongoDB\Repository\DocumentRepository".
Notice that i didn't have any repository

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions