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