Skip to content

Adding link to @ParamConverter #1889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ be.

Doctrine is totally decoupled from Symfony and using it is optional.
This chapter is all about the Doctrine ORM, which aims to let you map
objects to a relational database (such as *MySQL*, *PostgreSQL* or
*Microsoft SQL*). If you prefer to use raw database queries, this is
objects to a relational database (such as *MySQL*, *PostgreSQL* or
*Microsoft SQL*). If you prefer to use raw database queries, this is
easy, and explained in the ":doc:`/cookbook/doctrine/dbal`" cookbook entry.

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

.. tip::

In a controller action you can achieve teh equivalent of this without writing
any code by using the ``@ParamConverter``. See the :doc:`FrameworkExtraBundle documentation</bundles/SensioFrameworkExtraBundle/annotations/converters>`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's cleaner to put the link on a new line

for more details.

When you query for a particular type of object, you always use what's known
as its "repository". You can think of a repository as a PHP class whose only
job is to help you fetch entities of a certain class. You can access the
Expand Down Expand Up @@ -1371,7 +1377,7 @@ Some notable or interesting tasks include:

.. caution::

Don't forget to add the ``--no-debug`` switch, because the debug flag is
Don't forget to add the ``--no-debug`` switch, because the debug flag is
always set to true, even if the environment is set to ``prod``.

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