symfony / symfony/maker-bundle
make:entity argument name
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.4k
- Forks
- 427
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 20
Description
The command help make:entity shows the argument name of make:entity, which would be the Class name of the entity to create or update.
If using the command (e. g. make:entity --regenerate VictoriousGnome) the error message is No entities were found in the "VictoriousGnome" namespace.
But according to help, the argument name should be the clase name and not a namespace. The help and the error message appear inconsistent.
$ php bin/console help make:entity
Usage:
make:entity [options] [--] [<name>]
Arguments:
name Class name of the entity to create or update (e.g. VictoriousGnome)
Options:
-a, --api-resource Mark this class as an API Platform resource (expose a CRUD API for it)
--regenerate Instead of adding new fields, simply generate the methods (e.g. getter/setter) for existing fields
--overwrite Overwrite any existing getter/setter methods
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-e, --env=ENV The Environment name. [default: "dev"]
--no-debug Switches off debug mode.
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
[...]
$ php bin/console make:entity --regenerate VictoriousGnome
! [NOTE] It looks like your app may be using a namespace other than "AppBundle".
!
! To configure this and make your life easier, see:
! https://symfony.com/doc/current/bundles/SymfonyMakerBundle/index.html#configuration
[ERROR] No entities were found in the "VictoriousGnome" namespace.
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.
Research direction
Start at the make:entity command entry point and compare the argument description shown by help with the error produced by --regenerate. Determine which wording or behavior should be consistent, then verify that the command's help and error output describe the same kind of name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100