Skip to content

Doctrine ORM and ODM conflict #298

@luxemate

Description

@luxemate

Since I've installed Doctrine MongoDB ODM bundle, symfony2 plugin doesn't show what ORM repository is related to the entity, and highlights the custom repository methods as they were not found in the ObjectRepository, though it detects ODM repositories and finds custom methods. Could anyone confirm the same behavior?

$this->getDoctrine() ->getRepository('AcmeDemoBundle:User')->getByWhatever(); $this->get('doctrine.odm.mongodb.document_manager') ->getRepository('AcmeDemoBundle:Article')->getByWhatever();

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions