Skip to content

Commit 48846de

Browse files
lyrixxjrushlow
andauthored
feature 1520 [make:entity] Simplify repository PHPDoc removes method annotations
Co-authored-by: Jesse Rushlow <[email protected]>
1 parent ff1c8c5 commit 48846de

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@
66

77
/**
88
* @extends ServiceEntityRepository<<?= $entity_class_name; ?>>
9-
*
10-
* @method <?= $entity_class_name; ?>|null find($id, $lockMode = null, $lockVersion = null)
11-
* @method <?= $entity_class_name; ?>|null findOneBy(array $criteria, array $orderBy = null)
12-
* @method <?= $entity_class_name; ?>[] findAll()
13-
* @method <?= $entity_class_name; ?>[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
149
*/
1510
class <?= $class_name; ?> extends ServiceEntityRepository<?= $with_password_upgrade ? " implements PasswordUpgraderInterface\n" : "\n" ?>
1611
{

tests/Doctrine/fixtures/expected_xml/src/Repository/UserRepository.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
/**
1010
* @extends ServiceEntityRepository<UserXml>
11-
*
12-
* @method UserXml|null find($id, $lockMode = null, $lockVersion = null)
13-
* @method UserXml|null findOneBy(array $criteria, array $orderBy = null)
14-
* @method UserXml[] findAll()
15-
* @method UserXml[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
1611
*/
1712
class UserRepository extends ServiceEntityRepository
1813
{

tests/Doctrine/fixtures/expected_xml/src/Repository/XOtherRepository.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
/**
1010
* @extends ServiceEntityRepository<XOther>
11-
*
12-
* @method XOther|null find($id, $lockMode = null, $lockVersion = null)
13-
* @method XOther|null findOneBy(array $criteria, array $orderBy = null)
14-
* @method XOther[] findAll()
15-
* @method XOther[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
1611
*/
1712
class XOtherRepository extends ServiceEntityRepository
1813
{

tests/fixtures/make-crud/SweetFoodRepository.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88

99
/**
1010
* @extends ServiceEntityRepository<SweetFood>
11-
*
12-
* @method SweetFood|null find($id, $lockMode = null, $lockVersion = null)
13-
* @method SweetFood|null findOneBy(array $criteria, array $orderBy = null)
14-
* @method SweetFood[] findAll()
15-
* @method SweetFood[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
1611
*/
1712
class SweetFoodRepository extends ServiceEntityRepository
1813
{

0 commit comments

Comments
 (0)