|
15 | 15 |
|
16 | 16 | Doctrine is totally decoupled from Symfony and using it is optional.
|
17 | 17 | This chapter is all about the Doctrine ORM, which aims to let you map
|
18 |
| - objects to a relational database (such as *MySQL*, *PostgreSQL* or |
19 |
| - *Microsoft SQL*). If you prefer to use raw database queries, this is |
| 18 | + objects to a relational database (such as *MySQL*, *PostgreSQL* or |
| 19 | + *Microsoft SQL*). If you prefer to use raw database queries, this is |
20 | 20 | easy, and explained in the ":doc:`/cookbook/doctrine/dbal`" cookbook entry.
|
21 | 21 |
|
22 | 22 | You can also persist data to `MongoDB`_ using Doctrine ODM library. For
|
@@ -476,6 +476,12 @@ on its ``id`` value::
|
476 | 476 | // ... do something, like pass the $product object into a template
|
477 | 477 | }
|
478 | 478 |
|
| 479 | +.. tip:: |
| 480 | + |
| 481 | + In a controller action you can achieve teh equivalent of this without writing |
| 482 | + any code by using the ``@ParamConverter``. See the :doc:`FrameworkExtraBundle documentation</bundles/SensioFrameworkExtraBundle/annotations/converters>` |
| 483 | + for more details. |
| 484 | + |
479 | 485 | When you query for a particular type of object, you always use what's known
|
480 | 486 | as its "repository". You can think of a repository as a PHP class whose only
|
481 | 487 | job is to help you fetch entities of a certain class. You can access the
|
@@ -1371,7 +1377,7 @@ Some notable or interesting tasks include:
|
1371 | 1377 |
|
1372 | 1378 | .. caution::
|
1373 | 1379 |
|
1374 |
| - Don't forget to add the ``--no-debug`` switch, because the debug flag is |
| 1380 | + Don't forget to add the ``--no-debug`` switch, because the debug flag is |
1375 | 1381 | always set to true, even if the environment is set to ``prod``.
|
1376 | 1382 |
|
1377 | 1383 | * ``doctrine:mapping:import`` - allows Doctrine to introspect an existing
|
|
0 commit comments