From d957600d184e852abc70ae4cdf7a3ec22887ce26 Mon Sep 17 00:00:00 2001 From: Guillaume HARARI Date: Fri, 3 Dec 2021 22:51:45 +0100 Subject: [PATCH] Update doctrine.rst Since 5.4, documentation inject ManagerRegistry but kept Doctrine\ORM\EntityManagerInterface in uses. --- doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine.rst b/doctrine.rst index b2ac440d72a..4e1bc649d39 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -361,7 +361,7 @@ and save it:: // ... use App\Entity\Product; - use Doctrine\ORM\EntityManagerInterface; + use Doctrine\Persistence\ManagerRegistry; use Symfony\Component\HttpFoundation\Response; class ProductController extends AbstractController