@@ -1354,67 +1354,6 @@ maps a PHP data type to a specific column type in whatever database you're
1354
1354
using. To see a list of all available types and more information, see
1355
1355
Doctrine's `Mapping Types documentation `_.
1356
1356
1357
- .. index ::
1358
- single: Doctrine; ORM console commands
1359
- single: CLI; Doctrine ORM
1360
-
1361
- Console Commands
1362
- ----------------
1363
-
1364
- The Doctrine2 ORM integration offers several console commands under the
1365
- ``doctrine `` namespace. To view the command list you can run the console
1366
- without any arguments:
1367
-
1368
- .. code-block :: bash
1369
-
1370
- $ php app/console
1371
-
1372
- A list of available commands will print out, many of which start with the
1373
- ``doctrine: `` prefix. You can find out more information about any of these
1374
- commands (or any Symfony command) by running the ``help `` command. For example,
1375
- to get details about the ``doctrine:database:create `` task, run:
1376
-
1377
- .. code-block :: bash
1378
-
1379
- $ php app/console help doctrine:database:create
1380
-
1381
- Some notable or interesting tasks include:
1382
-
1383
- * ``doctrine:ensure-production-settings `` - checks to see if the current
1384
- environment is configured efficiently for production. This should always
1385
- be run in the ``prod `` environment:
1386
-
1387
- .. code-block :: bash
1388
-
1389
- $ php app/console doctrine:ensure-production-settings --env=prod
1390
-
1391
- * ``doctrine:mapping:import `` - allows Doctrine to introspect an existing
1392
- database and create mapping information. For more information, see
1393
- :doc: `/cookbook/doctrine/reverse_engineering `.
1394
-
1395
- * ``doctrine:mapping:info `` - tells you all of the entities that Doctrine
1396
- is aware of and whether or not there are any basic errors with the mapping.
1397
-
1398
- * ``doctrine:query:dql `` and ``doctrine:query:sql `` - allow you to execute
1399
- DQL or SQL queries directly from the command line.
1400
-
1401
- .. note ::
1402
-
1403
- To be able to load data fixtures to your database, you will need to have
1404
- the DoctrineFixturesBundle bundle installed. To learn how to do it,
1405
- read the ":doc: `/bundles/DoctrineFixturesBundle/index `" entry of the
1406
- documentation.
1407
-
1408
- .. tip ::
1409
-
1410
- This page shows working with Doctrine within a controller. You may also
1411
- want to work with Doctrine elsewhere in your application. The
1412
- :method: `Symfony\\ Bundle\\ FrameworkBundle\\ Controller\\ Controller::getDoctrine `
1413
- method of the controller returns the ``doctrine `` service, you can work with
1414
- this in the same way elsewhere by injecting this into your own
1415
- services. See :doc: `/book/service_container ` for more on creating
1416
- your own services.
1417
-
1418
1357
Summary
1419
1358
-------
1420
1359
@@ -1434,6 +1373,7 @@ For more information about Doctrine, see the *Doctrine* section of the
1434
1373
1435
1374
* :doc: `/bundles/DoctrineFixturesBundle/index `
1436
1375
* :doc: `/cookbook/doctrine/common_extensions `
1376
+ * :doc: `/cookbook/doctrine/console `
1437
1377
1438
1378
.. _`Doctrine` : http://www.doctrine-project.org/
1439
1379
.. _`MongoDB` : http://www.mongodb.org/
0 commit comments