Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[make:entity] Simplify repository PHPDoc removes method annotations #1520

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/Resources/skeleton/doctrine/Repository.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

/**
* @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()
* @method <?= $entity_class_name; ?>[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class <?= $class_name; ?> extends ServiceEntityRepository<?= $with_password_upgrade ? " implements PasswordUpgraderInterface\n" : "\n" ?>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

/**
* @extends ServiceEntityRepository<UserXml>
*
* @method UserXml|null find($id, $lockMode = null, $lockVersion = null)
* @method UserXml|null findOneBy(array $criteria, array $orderBy = null)
* @method UserXml[] findAll()
* @method UserXml[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class UserRepository extends ServiceEntityRepository
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

/**
* @extends ServiceEntityRepository<XOther>
*
* @method XOther|null find($id, $lockMode = null, $lockVersion = null)
* @method XOther|null findOneBy(array $criteria, array $orderBy = null)
* @method XOther[] findAll()
* @method XOther[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class XOtherRepository extends ServiceEntityRepository
{
Expand Down
5 changes: 0 additions & 5 deletions tests/fixtures/make-crud/SweetFoodRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@

/**
* @extends ServiceEntityRepository<SweetFood>
*
* @method SweetFood|null find($id, $lockMode = null, $lockVersion = null)
* @method SweetFood|null findOneBy(array $criteria, array $orderBy = null)
* @method SweetFood[] findAll()
* @method SweetFood[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
*/
class SweetFoodRepository extends ServiceEntityRepository
{
Expand Down
Loading