Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef55eed

Browse files
committed
minor#12076 Fix use of deprecated Symfony\Bridge\Doctrine\RegistryInterface (Tobion)
This PR was merged into the 4.3 branch.Discussion----------Fix use of deprecated Symfony\Bridge\Doctrine\RegistryInterfaceSeesymfony/symfony#32817<!--If your pull request fixes a BUG, use the oldest maintained branch that containsthe bug (seehttps://symfony.com/roadmap for the list of maintained branches).If your pull request documents a NEW FEATURE, use the same Symfony branch wherethe feature was introduced (and `master` for features of unreleased versions).-->Commits-------7719400 Fix use of deprecated Symfony\Bridge\Doctrine\RegistryInterface
2 parentsf3178ac +7719400 commitef55eed

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
@@ -669,11 +669,11 @@ But what if you need a more complex query? When you generated your entity with
669669

670670
use App\Entity\Product;
671671
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
672-
useSymfony\Bridge\Doctrine\RegistryInterface;
672+
useDoctrine\Common\Persistence\ManagerRegistry;
673673

674674
class ProductRepository extends ServiceEntityRepository
675675
{
676-
public function __construct(RegistryInterface $registry)
676+
public function __construct(ManagerRegistry $registry)
677677
{
678678
parent::__construct($registry, Product::class);
679679
}
@@ -691,7 +691,7 @@ a new method for this to your repository::
691691
// ...
692692
class ProductRepository extends ServiceEntityRepository
693693
{
694-
public function __construct(RegistryInterface $registry)
694+
public function __construct(ManagerRegistry $registry)
695695
{
696696
parent::__construct($registry, Product::class);
697697
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp