Skip to content

Commit 0488a66

Browse files
weaverryantheofidry
authored andcommitted
Adding short alias for command: fixtures:load (#232)
1 parent 535f6ce commit 0488a66

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ AppBundle\Entity\RelatedDummy:
111111
name: <name()>
112112
```
113113

114-
Then simply load your fixtures with the doctrine command `php app/console hautelook_alice:doctrine:fixtures:load` (or `php app/console h:d:f:l`).
114+
Then simply load your fixtures with the doctrine command `php app/console fixtures:load`.
115115

116-
If you want to load the fixtures of a bundle only, do `php app/console h:d:f:l -b MyFirstBundle -b MySecondBundle`.
116+
If you want to load the fixtures of a bundle only, do `php app/console fixtures:load -b MyFirstBundle -b MySecondBundle`.
117117

118118
[See more](#documentation).<br />
119119
Next chapter: [Advanced usage](src/Resources/doc/advanced-usage.md)

src/Doctrine/Command/LoadDataFixturesCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ public function __construct(
109109
protected function configure()
110110
{
111111
$this
112+
->setAliases(['fixtures:load'])
112113
->setDescription('Load data fixtures to your database.')
113114
->addOption(
114115
'bundle',

0 commit comments

Comments
 (0)