BugGood First IssueHasPR
Repository metrics
- Stars
- (3,384 stars)
- PR merge metrics
- (PR metrics pending)
説明
I know that Repository isn't THE BEST name for an entity, but I found that make:entity have problem with generation of such.
Maker creates Repository called Repository instead of RepositoryRepository and because of that, their use sections conflicts (same name of Entity and Repository)
Steps to reproduce:
symfony new test;
cd test;
composer req orm;
composer req maker;
php bin/console make:entity Repository
Result:
PHP Fatal error: Cannot declare class App\Entity\Repository because the name is already in use in /home/jerzy/test/src/Entity/Repository.php on line 11
I see two possible solutions:
- Fix the bug
- Block "Repository" as reserved keyword