[autocorrect] make:entity selects incorrect class when input class contains part of another
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start by reproducing the issue with an existing App\Entity\AppConfigSetting and a requested App\Entity\AppConfig through make:entity. Trace the make:entity command's class selection and add a regression test for the name collision. Done means the requested AppConfig class is selected rather than the existing AppConfigSetting class.
Written by the indexing model from the issue text.
Description
I have an existing App\Entity\AppConfigSetting class, and now want to make App\Entity\AppConfig. Attempting make:entity with the non-existing "AppConfig" class gives me the following behavior:

I've had this happen several times over the past year - always when I'm trying to create a new class that contains part of an existing class name.
symfony/maker-bundle version 1.28
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 427
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 20
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from symfony/maker-bundle
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
symfony/maker-bundle#1615 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
symfony/maker-bundle#1832 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
symfony/maker-bundle#1764 · 3 comments · 9 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
symfony/maker-bundle#1760 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
symfony/maker-bundle#1757 · 2 comments ·
All issues in symfony/maker-bundle
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100