Skip to content

Commit 49eca77

Browse files
committed
Remove paragraph about mapping override
Because this solution only works if the bundle relies on auto_mapping. IMHO a bundle should add mapping via the dedicated compiler pass and not rely on the application configuration (`auto_mapping: true` in this case).
1 parent 98b6734 commit 49eca77

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

bundles/override.rst

+2-7
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,8 @@ inside a :doc:`compiler pass </service_container/compiler_passes>`.
5353
Entities & Entity Mapping
5454
-------------------------
5555

56-
If a bundle defines its entity mapping in configuration files instead of
57-
annotations, you can override them as any other regular bundle configuration
58-
file. The only caveat is that you must override all those mapping configuration
59-
files and not just the ones you actually want to override.
60-
61-
If a bundle provides a mapped superclass (such as the ``User`` entity in the
62-
FOSUserBundle) you can override its attributes and associations. Learn more
56+
Entity mapping can only be overridden if a bundle provides a mapped superclass (such as the ``User`` entity in the
57+
FOSUserBundle). It's possible to override attributes and associations in this way. Learn more
6358
about this feature and its limitations in `the Doctrine documentation`_.
6459

6560
Forms

0 commit comments

Comments
 (0)