Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 3400263

Browse files
committed
fix typo
1 parent e24c63f commit 3400263

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

bundles/routing/dynamic.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,14 @@ The example in this section applies if you use the ORM route provider
418418
``staticPrefix`` field of the
419419
``Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Orm\Route`` to find route candidates.
420420

421-
Symfony Cmf routing system allows us loading whatever content from a route.
422-
That means an entity route can reference to different types of entities.
423-
But Doctrine ORM is not able to establish that kind of mapping associations.
424-
To do that, the ORM RouteProvider follows the pattern of FQN:id. That is, the full
425-
model class name, then a colon, then the id. You only need to add it to the
426-
defaults parameters of the route with the ``RouteObjectInterface::CONTENT_ID``
427-
key. ``cmf_routing.content_repository`` service can help you to do it easily.
428-
A new route can be created in PHP code as follows::
421+
Symfony Cmf routing system allows us loading whatever content from a route. That
422+
means an entity route can reference to different types of entities. But Doctrine
423+
ORM is not able to establish that kind of mapping associations. To do that, the
424+
ORM RouteProvider follows the pattern of ``FQN:id``. That is, the full model
425+
class name, then a colon, then the id. You only need to add it to the defaults
426+
parameters of the route with the ``RouteObjectInterface::CONTENT_ID`` key.
427+
``cmf_routing.content_repository`` service can help you to do it easily. A new
428+
route can be created in PHP code as follows::
429429

430430
// src/AppBundle/DataFixtures/ORM/LoadPostData.php
431431
namespace AppBundle\DataFixtures\ORM;

0 commit comments

Comments
 (0)