@@ -116,7 +116,7 @@ for you:
116116
117117.. code-block :: bash
118118
119- $ php app /console doctrine:database:create
119+ $ php bin /console doctrine:database:create
120120
121121 .. sidebar :: Setting up the Database to be UTF8
122122
@@ -128,8 +128,8 @@ for you:
128128
129129 .. code-block :: bash
130130
131- $ php app /console doctrine:database:drop --force
132- $ php app /console doctrine:database:create
131+ $ php bin /console doctrine:database:drop --force
132+ $ php bin /console doctrine:database:create
133133
134134 There's no way to configure these defaults inside Doctrine, as it tries to be
135135 as agnostic as possible in terms of environment configuration. One way to solve
@@ -227,7 +227,7 @@ just a simple PHP class.
227227
228228 .. code-block :: bash
229229
230- $ php app /console doctrine:generate:entity
230+ $ php bin /console doctrine:generate:entity
231231
232232 .. index ::
233233 single: Doctrine; Adding mapping metadata
@@ -392,7 +392,7 @@ a regular PHP class, you need to create getter and setter methods (e.g. ``getNam
392392
393393.. code-block :: bash
394394
395- $ php app /console doctrine:generate:entities AppBundle/Entity/Product
395+ $ php bin /console doctrine:generate:entities AppBundle/Entity/Product
396396
397397 This command makes sure that all the getters and setters are generated
398398for the ``Product `` class. This is a safe command - you can run it over and
@@ -434,10 +434,10 @@ mapping information) of a bundle or an entire namespace:
434434.. code-block :: bash
435435
436436 # generates all entities in the AppBundle
437- $ php app /console doctrine:generate:entities AppBundle
437+ $ php bin /console doctrine:generate:entities AppBundle
438438
439439 # generates all entities of bundles in the Acme namespace
440- $ php app /console doctrine:generate:entities Acme
440+ $ php bin /console doctrine:generate:entities Acme
441441
442442 .. note ::
443443
@@ -459,7 +459,7 @@ in your application. To do this, run:
459459
460460.. code-block :: bash
461461
462- $ php app /console doctrine:schema:update --force
462+ $ php bin /console doctrine:schema:update --force
463463
464464 .. tip ::
465465
@@ -852,7 +852,7 @@ used earlier to generate the missing getter and setter methods:
852852
853853.. code-block :: bash
854854
855- $ php app /console doctrine:generate:entities AppBundle
855+ $ php bin /console doctrine:generate:entities AppBundle
856856
857857 Next, add a new method - ``findAllOrderedByName() `` - to the newly generated
858858repository class. This method will query for all the ``Product `` entities,
@@ -906,7 +906,7 @@ you can let Doctrine create the class for you.
906906
907907.. code-block :: bash
908908
909- $ php app /console doctrine:generate:entity --no-interaction \
909+ $ php bin /console doctrine:generate:entity --no-interaction \
910910 --entity=" AppBundle:Category" \
911911 --fields=" name:string(255)"
912912
@@ -1063,7 +1063,7 @@ methods for you:
10631063
10641064.. code-block :: bash
10651065
1066- $ php app /console doctrine:generate:entities AppBundle
1066+ $ php bin /console doctrine:generate:entities AppBundle
10671067
10681068 Ignore the Doctrine metadata for a moment. You now have two classes - ``Category ``
10691069and ``Product `` with a natural one-to-many relationship. The ``Category ``
@@ -1092,7 +1092,7 @@ table, and ``product.category_id`` column, and new foreign key:
10921092
10931093.. code-block :: bash
10941094
1095- $ php app /console doctrine:schema:update --force
1095+ $ php bin /console doctrine:schema:update --force
10961096
10971097 .. note ::
10981098
0 commit comments