[DX] Normalize generation tools #286

Merged
merged 1 commit into from Jul 7, 2014

Conversation

Projects
None yet
3 participants
@benji07
Contributor

benji07 commented Jul 5, 2014

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

@fabpot

This comment has been minimized.

Show comment
Hide comment
@fabpot

fabpot Jul 7, 2014

Member

Thank you @benji07.

Member

fabpot commented Jul 7, 2014

Thank you @benji07.

@fabpot fabpot merged commit 6ebdfd4 into sensiolabs:master Jul 7, 2014

2 checks passed

continuous-integration/travis-ci The Travis CI build passed
Details
default Success: Travis, fabbot
Details

fabpot added a commit that referenced this pull request 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
@@ -144,6 +146,10 @@ protected function interact(InputInterface $input, OutputInterface $output)
'',
));
+ if ($input->hasArgument('entity') && $input->getArgument('entity') != '') {

This comment has been minimized.

@stof

stof Sep 3, 2014

Contributor

$input->hasArgument('entity') is useless. We know that the input definition has this argument, as we defined it in the command

@stof

stof Sep 3, 2014

Contributor

$input->hasArgument('entity') is useless. We know that the input definition has this argument, as we defined it in the command

fabpot added a commit that referenced this pull request 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