From 034d69abd89f6274a543f3cc8a2d2f72a12c619b Mon Sep 17 00:00:00 2001 From: WouterJ Date: Sat, 18 Jan 2014 12:47:05 +0100 Subject: [PATCH] Tweaked new cookbook article --- cookbook/doctrine/console.rst | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/cookbook/doctrine/console.rst b/cookbook/doctrine/console.rst index b48cd3e3f3c..0cfb7befca0 100644 --- a/cookbook/doctrine/console.rst +++ b/cookbook/doctrine/console.rst @@ -6,17 +6,17 @@ Console Commands ---------------- The Doctrine2 ORM integration offers several console commands under the -``doctrine`` namespace. To view the command list you can run the console -without any arguments: +``doctrine`` namespace. To view the command list you can use the ``list`` +command: .. code-block:: bash - $ php app/console + $ php app/console list doctrine -A list of available commands will print out, many of which start with the -``doctrine:`` prefix. You can find out more information about any of these -commands (or any Symfony command) by running the ``help`` command. For example, -to get details about the ``doctrine:database:create`` task, run: +A list of available commands will print out. You can find out more information +about any of these commands (or any Symfony command) by running the ``help`` +command. For example, to get details about the ``doctrine:database:create`` +task, run: .. code-block:: bash @@ -41,20 +41,3 @@ Some notable or interesting tasks include: * ``doctrine:query:dql`` and ``doctrine:query:sql`` - allow you to execute DQL or SQL queries directly from the command line. - -.. note:: - - To be able to load data fixtures to your database, you will need to have - the DoctrineFixturesBundle bundle installed. To learn how to do it, - read the ":doc:`/bundles/DoctrineFixturesBundle/index`" entry of the - documentation. - -.. tip:: - - This page shows working with Doctrine within a controller. You may also - want to work with Doctrine elsewhere in your application. The - :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::getDoctrine` - method of the controller returns the ``doctrine`` service, you can work with - this in the same way elsewhere by injecting this into your own - services. See :doc:`/book/service_container` for more on creating - your own services.