From 73b5aeef4f4dd76f99027f42006f2ae598ad4031 Mon Sep 17 00:00:00 2001 From: Hugo Hamon Date: Sun, 3 Apr 2022 16:50:30 +0200 Subject: [PATCH] Add `@extends` tag to Doctrine repository template. --- src/Resources/skeleton/doctrine/Repository.tpl.php | 2 ++ .../fixtures/expected_xml/src/Repository/UserRepository.php | 2 ++ .../fixtures/expected_xml/src/Repository/XOtherRepository.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/Resources/skeleton/doctrine/Repository.tpl.php b/src/Resources/skeleton/doctrine/Repository.tpl.php index f06885cf6..e7f0476ff 100644 --- a/src/Resources/skeleton/doctrine/Repository.tpl.php +++ b/src/Resources/skeleton/doctrine/Repository.tpl.php @@ -13,6 +13,8 @@ getFullName(), '\UserInterface')) ? sprintf("use %s;\n", $password_upgrade_user_interface->getFullName()) : null ?> /** + * @extends ServiceEntityRepository<> + * * @method |null find($id, $lockMode = null, $lockVersion = null) * @method |null findOneBy(array $criteria, array $orderBy = null) * @method [] findAll() diff --git a/tests/Doctrine/fixtures/expected_xml/src/Repository/UserRepository.php b/tests/Doctrine/fixtures/expected_xml/src/Repository/UserRepository.php index 66414ec39..17d14e087 100644 --- a/tests/Doctrine/fixtures/expected_xml/src/Repository/UserRepository.php +++ b/tests/Doctrine/fixtures/expected_xml/src/Repository/UserRepository.php @@ -9,6 +9,8 @@ use Doctrine\Persistence\ManagerRegistry; /** + * @extends ServiceEntityRepository + * * @method UserXml|null find($id, $lockMode = null, $lockVersion = null) * @method UserXml|null findOneBy(array $criteria, array $orderBy = null) * @method UserXml[] findAll() diff --git a/tests/Doctrine/fixtures/expected_xml/src/Repository/XOtherRepository.php b/tests/Doctrine/fixtures/expected_xml/src/Repository/XOtherRepository.php index 2b7115ee3..b76f742c4 100644 --- a/tests/Doctrine/fixtures/expected_xml/src/Repository/XOtherRepository.php +++ b/tests/Doctrine/fixtures/expected_xml/src/Repository/XOtherRepository.php @@ -9,6 +9,8 @@ use Doctrine\Persistence\ManagerRegistry; /** + * @extends ServiceEntityRepository + * * @method XOther|null find($id, $lockMode = null, $lockVersion = null) * @method XOther|null findOneBy(array $criteria, array $orderBy = null) * @method XOther[] findAll()