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

Commit15cc3a6

Browse files
minor #454 [Doctrine][Repository] deprecated replacement (maxhelias)
This PR was merged into the 1.0-dev branch.Discussion----------[Doctrine][Repository] deprecated replacementApplication ofsymfony/symfony#32817Commits-------74f5135 [Doctrine][Repository] deprecated replacement
2 parentse128b02 +34d5c8e commit15cc3a6

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-
useSymfony\Bridge\Doctrine\RegistryInterface;
7+
useDoctrine\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)

[8]ページ先頭

©2009-2025 Movatter.jp