10000 [Doctrine][Repository] deprecated replacement · symfony/maker-bundle@74f5135 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74f5135

Browse files
committed
[Doctrine][Repository] deprecated replacement
1 parent 4b68910 commit 74f5135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Resources/skeleton/doctrine/Repository.tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use <?= $entity_full_class_name; ?>;
66
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7-
use Symfony\Bridge\Doctrine\RegistryInterface;
7+
use Doctrine\Common\Persistence\ManagerRegistry;
88

99
/**
1010
* @method <?= $entity_class_name; ?>|null find($id, $lockMode = null, $lockVersion = null)
@@ -14,7 +14,7 @@
1414
*/
1515
class <?= $class_name; ?> extends ServiceEntityRepository
1616
{
17-
public function __construct(RegistryInterface $registry)
17+
public function __construct(ManagerRegistry $registry)
1818
{
1919
parent::__construct($registry, <?= $entity_class_name; ?>::class);
2020
}

0 commit comments

Comments
 (0)
0