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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions