File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,15 @@ register the mappings for your model classes.
11
11
12
12
.. note ::
13
13
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
17
17
just to get the auto mapping, use the compiler pass.
18
18
19
19
.. 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
21
21
support it from DoctrineBundle >= 1.2.1, MongoDBBundle >= 3.0.0
22
22
23
-
24
23
In your bundle class, write the following code to register the compiler pass::
25
24
26
25
use Doctrine\Bundle\DoctrineBundle\DependencyInjection\Compiler\DoctrineOrmMappingsPass;
You can’t perform that action at this time.
0 commit comments