File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -665,11 +665,11 @@ But what if you need a more complex query? When you generated your entity with
665
665
666
666
use App\Entity\Product;
667
667
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
668
- use Symfony\Bridge\Doctrine\RegistryInterface ;
668
+ use Doctrine\Common\Persistence\ManagerRegistry ;
669
669
670
670
class ProductRepository extends ServiceEntityRepository
671
671
{
672
- public function __construct(RegistryInterface $registry)
672
+ public function __construct(ManagerRegistry $registry)
673
673
{
674
674
parent::__construct($registry, Product::class);
675
675
}
@@ -687,7 +687,7 @@ a new method for this to your repository::
687
687
// ...
688
688
class ProductRepository extends ServiceEntityRepository
689
689
{
690
- public function __construct(RegistryInterface $registry)
690
+ public function __construct(ManagerRegistry $registry)
691
691
{
692
692
parent::__construct($registry, Product::class);
693
693
}
You can’t perform that action at this time.
0 commit comments