Skip to content

Commit ee59644

Browse files
committed
Merge pull request #1889 from richardmiller/adding_paramconverter_link
Adding link to @ParamConverter
2 parents 69c0592 + 7e9621c commit ee59644

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

book/doctrine.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ be.
1515

1616
Doctrine is totally decoupled from Symfony and using it is optional.
1717
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
2020
easy, and explained in the ":doc:`/cookbook/doctrine/dbal`" cookbook entry.
2121

2222
You can also persist data to `MongoDB`_ using Doctrine ODM library. For
@@ -476,6 +476,12 @@ on its ``id`` value::
476476
// ... do something, like pass the $product object into a template
477477
}
478478

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+
479485
When you query for a particular type of object, you always use what's known
480486
as its "repository". You can think of a repository as a PHP class whose only
481487
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:
13711377
13721378
.. caution::
13731379

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
13751381
always set to true, even if the environment is set to ``prod``.
13761382

13771383
* ``doctrine:mapping:import`` - allows Doctrine to introspect an existing

0 commit comments

Comments
 (0)