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

[DX] Normalize generation tools #280

Closed
tgalopin opened this Issue Jun 24, 2014 · 0 comments

Comments

Projects
None yet
2 participants
@tgalopin
Member

tgalopin commented Jun 24, 2014

The problem

There is many generation tools in Symfony (entity, entities, form, CRUD, bundle, controller) and they do not follow the same arguments logic so it's difficult to remember which synthax is the right one. For instance:

php app/console doctrine:generate:form AcmeFooBundle:Entity works
php app/console doctrine:generate:form does not work

php app/console doctrine:generate:crud AcmeFooBundle:Entity does not work
php app/console doctrine:generate:crud works

The solution

Two possible solutions come in my mind:

  • choose a single arguments logic and use it every time ;

or

  • add the possibility to use either php app/console doctrine:generate:crud AcmeFooBundle:Entity or php app/console doctrine:generate:crud without problem ;

@tgalopin tgalopin referenced this issue in symfony/symfony Jun 24, 2014

Closed

[DX] Normalize generation tools #11216

fabpot added a commit that referenced this issue Jul 7, 2014

feature #286 [DX] Normalize generation tools (benji07)
This PR was merged into the 2.3.x-dev branch.

Discussion
----------

[DX] Normalize generation tools

Add an entity argument on the `doctrine:generate:crud` command

```
php app/console doctrine:generate:crud AcmeDemoBundle:Post
```

is equivalent to

```
php app/console doctrine:generate:crud --entity=AcmeDemoBundle:Post
```

Related to the issue #280

Commits
-------

6ebdfd4 [DX] Normalize generation tools

@fabpot fabpot closed this Jul 7, 2014

fabpot added a commit that referenced this issue Jul 18, 2017

feature #514 [DX] Normalized entity argument for doctrine commands (H…
…eahDude)

This PR was merged into the 3.1.x-dev branch.

Discussion
----------

[DX] Normalized entity argument for doctrine commands

Follows up #280 and #286.

This was never documented. I suggest to deprecate the option as it is more verbose, and currently the only way for the form generation.

Commits
-------

ec4d80f Normalized entity argument for doctrine commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment