Skip to content

Commit

Permalink
Add @extends tag to Doctrine repository template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Hamon committed Apr 3, 2022
1 parent 11cc24d commit 918e3d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Resources/skeleton/doctrine/Repository.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<?= ($with_password_upgrade && str_contains($password_upgrade_user_interface->getFullName(), '\UserInterface')) ? sprintf("use %s;\n", $password_upgrade_user_interface->getFullName()) : null ?>

/**
* @extends ServiceEntityRepository<<?= $entity_class_name; ?>>
*
* @method <?= $entity_class_name; ?>|null find($id, $lockMode = null, $lockVersion = null)
* @method <?= $entity_class_name; ?>|null findOneBy(array $criteria, array $orderBy = null)
* @method <?= $entity_class_name; ?>[] findAll()
Expand Down

0 comments on commit 918e3d7

Please sign in to comment.