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); }