Skip to content

Commit 91fce06

Browse files
committed
[#2507] Tweaks for new compiler pass entry
1 parent b596c88 commit 91fce06

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

cookbook/doctrine/mapping_model_classes.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ register the mappings for your model classes.
1111

1212
.. note::
1313

14-
For non-reusable bundles, the easiest is to put your model classes in
15-
the default locations. ``Entity`` for Doctrine ORM, ``Document`` for one
16-
of the ODMs. For reusable bundles, rather than duplicate model classes
14+
For non-reusable bundles, the easiest option is to put your model classes
15+
in the default locations: ``Entity`` for the Doctrine ORM or ``Document``
16+
for one of the ODMs. For reusable bundles, rather than duplicate model classes
1717
just to get the auto mapping, use the compiler pass.
1818

1919
.. versionadded:: 2.3
20-
The base mapping compiler pass was added in Symfony 2.3, the doctrine bundles
20+
The base mapping compiler pass was added in Symfony 2.3. The doctrine bundles
2121
support it from DoctrineBundle >= 1.2.1, MongoDBBundle >= 3.0.0
2222

23-
2423
In your bundle class, write the following code to register the compiler pass::
2524

2625
use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass;

0 commit comments

Comments
 (0)