@@ -6,17 +6,17 @@ Console Commands
6
6
----------------
7
7
8
8
The Doctrine2 ORM integration offers several console commands under the
9
- ``doctrine `` namespace. To view the command list you can run the console
10
- without any arguments :
9
+ ``doctrine `` namespace. To view the command list you can use the `` list ``
10
+ command :
11
11
12
12
.. code-block :: bash
13
13
14
- $ php app/console
14
+ $ php app/console list doctrine
15
15
16
- A list of available commands will print out, many of which start with the
17
- `` doctrine: `` prefix. You can find out more information about any of these
18
- commands (or any Symfony command) by running the ``help `` command. For example,
19
- to get details about the `` doctrine:database:create `` task, run:
16
+ A list of available commands will print out. You can find out more information
17
+ about any of these commands (or any Symfony command) by running the `` help ``
18
+ command. For example, to get details about the ``doctrine:database:create ``
19
+ task, run:
20
20
21
21
.. code-block :: bash
22
22
@@ -41,20 +41,3 @@ Some notable or interesting tasks include:
41
41
42
42
* ``doctrine:query:dql `` and ``doctrine:query:sql `` - allow you to execute
43
43
DQL or SQL queries directly from the command line.
44
-
45
- .. note ::
46
-
47
- To be able to load data fixtures to your database, you will need to have
48
- the DoctrineFixturesBundle bundle installed. To learn how to do it,
49
- read the ":doc: `/bundles/DoctrineFixturesBundle/index `" entry of the
50
- documentation.
51
-
52
- .. tip ::
53
-
54
- This page shows working with Doctrine within a controller. You may also
55
- want to work with Doctrine elsewhere in your application. The
56
- :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::getDoctrine `
57
- method of the controller returns the ``doctrine `` service, you can work with
58
- this in the same way elsewhere by injecting this into your own
59
- services. See :doc: `/book/service_container ` for more on creating
60
- your own services.
0 commit comments