File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -208,13 +208,12 @@ just a simple PHP class.
208
208
.. tip ::
209
209
210
210
Once you learn the concepts behind Doctrine, you can have Doctrine create
211
- simple entity classes for you:
211
+ simple entity classes for you. This will ask you interactive questions
212
+ to help you build any entity:
212
213
213
214
.. code-block :: bash
214
215
215
- $ php app/console doctrine:generate:entity \
216
- --entity=" AcmeStoreBundle:Product" \
217
- --fields=" name:string(255) price:float description:text"
216
+ $ php app/console doctrine:generate:entity
218
217
219
218
.. index ::
220
219
single: Doctrine; Adding mapping metadata
@@ -899,8 +898,7 @@ you can let Doctrine create the class for you.
899
898
900
899
.. code-block :: bash
901
900
902
- $ php app/console doctrine:generate:entity --entity=" AcmeStoreBundle:Category" \
903
- --fields=" name:string(255)"
901
+ $ php app/console doctrine:generate:entity --entity=" AcmeStoreBundle:Category" --fields=" name:string(255)"
904
902
905
903
This task generates the ``Category `` entity for you, with an ``id `` field,
906
904
a ``name `` field and the associated getter and setter functions.
Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ Distribution:
57
57
58
58
.. code-block :: bash
59
59
60
- $ php composer.phar create-project \
61
- symfony/framework-standard-edition /path/to/webroot/Symfony 2.2.0
60
+ $ php composer.phar create-project symfony/framework-standard-edition /path/to/webroot/Symfony 2.2.0
62
61
63
62
.. tip ::
64
63
Original file line number Diff line number Diff line change @@ -1430,8 +1430,7 @@ console command:
1430
1430
.. code-block :: bash
1431
1431
1432
1432
# You can check by filename:
1433
- $ php app/console twig:lint \
1434
- src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig
1433
+ $ php app/console twig:lint src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig
1435
1434
1436
1435
# or by directory:
1437
1436
$ php app/console twig:lint src/Acme/ArticleBundle/Resources/views
You can’t perform that action at this time.
0 commit comments