From 771940033f6ea8ab7513725a68bb273e20eba988 Mon Sep 17 00:00:00 2001 From: Tobias Schultze Date: Thu, 1 Aug 2019 21:05:11 +0200 Subject: [PATCH] Fix use of deprecated Symfony\Bridge\Doctrine\RegistryInterface See https://github.com/symfony/symfony/pull/32817 --- doctrine.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doctrine.rst b/doctrine.rst index 01b7682d7fe..e12e4d9546b 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -669,11 +669,11 @@ But what if you need a more complex query? When you generated your entity with use App\Entity\Product; use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; - use Symfony\Bridge\Doctrine\RegistryInterface; + use Doctrine\Common\Persistence\ManagerRegistry; class ProductRepository extends ServiceEntityRepository { - public function __construct(RegistryInterface $registry) + public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Product::class); } @@ -691,7 +691,7 @@ a new method for this to your repository:: // ... class ProductRepository extends ServiceEntityRepository { - public function __construct(RegistryInterface $registry) + public function __construct(ManagerRegistry $registry) { parent::__construct($registry, Product::class); }