Skip to content

Commit dd3208f

Browse files
committed
Add conditional @implements tag to Doctrine repository template
1 parent 5c47dab commit dd3208f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
/**
88
* @extends ServiceEntityRepository<<?= $entity_class_name; ?>>
9+
<?= $with_password_upgrade ? "* @implements PasswordUpgraderInterface<$entity_class_name>\n" : "" ?>
910
*
1011
* @method <?= $entity_class_name; ?>|null find($id, $lockMode = null, $lockVersion = null)
1112
* @method <?= $entity_class_name; ?>|null findOneBy(array $criteria, array $orderBy = null)

0 commit comments

Comments
 (0)