Skip to content

Commit 9c2f381

Browse files
committed
Merge branch '4.4'
* 4.4: Remove wrong backslash Fix use of deprecated Symfony\Bridge\Doctrine\RegistryInterface
2 parents 8c2e52a + dc1f9bd commit 9c2f381

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doctrine.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -665,11 +665,11 @@ But what if you need a more complex query? When you generated your entity with
665665

666666
use App\Entity\Product;
667667
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
668-
use Symfony\Bridge\Doctrine\RegistryInterface;
668+
use Doctrine\Common\Persistence\ManagerRegistry;
669669

670670
class ProductRepository extends ServiceEntityRepository
671671
{
672-
public function __construct(RegistryInterface $registry)
672+
public function __construct(ManagerRegistry $registry)
673673
{
674674
parent::__construct($registry, Product::class);
675675
}
@@ -687,7 +687,7 @@ a new method for this to your repository::
687687
// ...
688688
class ProductRepository extends ServiceEntityRepository
689689
{
690-
public function __construct(RegistryInterface $registry)
690+
public function __construct(ManagerRegistry $registry)
691691
{
692692
parent::__construct($registry, Product::class);
693693
}

0 commit comments

Comments
 (0)