Open
Description
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