From d7d06f45d65dcd1145db84f54190daa2d986b3c9 Mon Sep 17 00:00:00 2001 From: kostya1000 <50690751+kostya1000@users.noreply.github.com> Date: Sat, 7 Dec 2019 01:21:33 +0700 Subject: [PATCH] Fix ManagerRegistry namespace We should use Doctrine\Bundle\MongoDBBundle\ManagerRegistry not Doctrine\Common\Persistence\ManagerRegistry --- Resources/doc/first_steps.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/doc/first_steps.rst b/Resources/doc/first_steps.rst index 2a2bf762..d93a48d4 100644 --- a/Resources/doc/first_steps.rst +++ b/Resources/doc/first_steps.rst @@ -452,7 +452,7 @@ is to use the repository as a service and inject it as a dependency into other s use Acme\StoreBundle\Document\Product; use Doctrine\Bundle\MongoDBBundle\Repository\ServiceDocumentRepository; - use Doctrine\Common\Persistence\ManagerRegistry; + use Doctrine\Bundle\MongoDBBundle\ManagerRegistry; /** * Remember to map this repository in the corresponding document's repositoryClass.