@@ -116,7 +116,7 @@ for you:
116
116
117
117
.. code-block :: bash
118
118
119
- $ php app /console doctrine:database:create
119
+ $ php bin /console doctrine:database:create
120
120
121
121
.. sidebar :: Setting up the Database to be UTF8
122
122
@@ -128,8 +128,8 @@ for you:
128
128
129
129
.. code-block :: bash
130
130
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
133
133
134
134
There's no way to configure these defaults inside Doctrine, as it tries to be
135
135
as agnostic as possible in terms of environment configuration. One way to solve
@@ -227,7 +227,7 @@ just a simple PHP class.
227
227
228
228
.. code-block :: bash
229
229
230
- $ php app /console doctrine:generate:entity
230
+ $ php bin /console doctrine:generate:entity
231
231
232
232
.. index ::
233
233
single: Doctrine; Adding mapping metadata
@@ -392,7 +392,7 @@ a regular PHP class, you need to create getter and setter methods (e.g. ``getNam
392
392
393
393
.. code-block :: bash
394
394
395
- $ php app /console doctrine:generate:entities AppBundle/Entity/Product
395
+ $ php bin /console doctrine:generate:entities AppBundle/Entity/Product
396
396
397
397
This command makes sure that all the getters and setters are generated
398
398
for 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:
434
434
.. code-block :: bash
435
435
436
436
# generates all entities in the AppBundle
437
- $ php app /console doctrine:generate:entities AppBundle
437
+ $ php bin /console doctrine:generate:entities AppBundle
438
438
439
439
# 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
441
441
442
442
.. note ::
443
443
@@ -459,7 +459,7 @@ in your application. To do this, run:
459
459
460
460
.. code-block :: bash
461
461
462
- $ php app /console doctrine:schema:update --force
462
+ $ php bin /console doctrine:schema:update --force
463
463
464
464
.. tip ::
465
465
@@ -852,7 +852,7 @@ used earlier to generate the missing getter and setter methods:
852
852
853
853
.. code-block :: bash
854
854
855
- $ php app /console doctrine:generate:entities AppBundle
855
+ $ php bin /console doctrine:generate:entities AppBundle
856
856
857
857
Next, add a new method - ``findAllOrderedByName() `` - to the newly generated
858
858
repository class. This method will query for all the ``Product `` entities,
@@ -906,7 +906,7 @@ you can let Doctrine create the class for you.
906
906
907
907
.. code-block :: bash
908
908
909
- $ php app /console doctrine:generate:entity --no-interaction \
909
+ $ php bin /console doctrine:generate:entity --no-interaction \
910
910
--entity=" AppBundle:Category" \
911
911
--fields=" name:string(255)"
912
912
@@ -1063,7 +1063,7 @@ methods for you:
1063
1063
1064
1064
.. code-block :: bash
1065
1065
1066
- $ php app /console doctrine:generate:entities AppBundle
1066
+ $ php bin /console doctrine:generate:entities AppBundle
1067
1067
1068
1068
Ignore the Doctrine metadata for a moment. You now have two classes - ``Category ``
1069
1069
and ``Product `` with a natural one-to-many relationship. The ``Category ``
@@ -1092,7 +1092,7 @@ table, and ``product.category_id`` column, and new foreign key:
1092
1092
1093
1093
.. code-block :: bash
1094
1094
1095
- $ php app /console doctrine:schema:update --force
1095
+ $ php bin /console doctrine:schema:update --force
1096
1096
1097
1097
.. note ::
1098
1098
0 commit comments