Skip to content

Commit 034d69a

Browse files
committed
Tweaked new cookbook article
1 parent 18cbacd commit 034d69a

File tree

1 file changed

+7
-24
lines changed

1 file changed

+7
-24
lines changed

cookbook/doctrine/console.rst

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ Console Commands
66
----------------
77

88
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:
1111

1212
.. code-block:: bash
1313
14-
$ php app/console
14+
$ php app/console list doctrine
1515
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:
2020

2121
.. code-block:: bash
2222
@@ -41,20 +41,3 @@ Some notable or interesting tasks include:
4141

4242
* ``doctrine:query:dql`` and ``doctrine:query:sql`` - allow you to execute
4343
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

Comments
 (0)