Skip to content

Commit a758b4f

Browse files
committed
Explain another option to override bundle's entity mapping
1 parent 2cb10d8 commit a758b4f

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

bundles/override.rst

+8-5
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ For more information on compiler passes, see :doc:`/service_container/compiler_p
7171
Entities & Entity Mapping
7272
-------------------------
7373

74-
Due to the way Doctrine works, it is not possible to override entity mapping
75-
of a bundle. However, if a bundle provides a mapped superclass (such as the
76-
``User`` entity in the FOSUserBundle) one can override attributes and
77-
associations. Learn more about this feature and its limitations in
78-
`the Doctrine documentation`_.
74+
If a bundle defines its entity mapping in configuration files instead of
75+
annotations, you can override them as any other regular bundle configuration
76+
file. The only caveat is that you must override all those mapping configuration
77+
files and not just the ones you actually want to override.
78+
79+
If a bundle provides a mapped superclass (such as the ``User`` entity in the
80+
FOSUserBundle) you can override its attributes and associations. Learn more
81+
about this feature and its limitations in `the Doctrine documentation`_.
7982

8083
Forms
8184
-----

0 commit comments

Comments
 (0)