Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c0714a

Browse filesBrowse files
committed
Merge branch '2.8' into 3.4
* 2.8: Explain another option to override bundle's entity mapping
2 parents 3c939f3 + cdfaff3 commit 7c0714a
Copy full SHA for 7c0714a

File tree

Expand file treeCollapse file tree

1 file changed

+8
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-5
lines changed

‎bundles/override.rst

Copy file name to clipboardExpand all lines: bundles/override.rst
+8-5Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@ inside a :doc:`compiler pass </service_container/compiler_passes>`.
5353
Entities & Entity Mapping
5454
-------------------------
5555

56-
Due to the way Doctrine works, it is not possible to override entity mapping
57-
of a bundle. However, if a bundle provides a mapped superclass (such as the
58-
``User`` entity in the FOSUserBundle) one can override attributes and
59-
associations. Learn more about this feature and its limitations in
60-
`the Doctrine documentation`_.
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
63+
about this feature and its limitations in `the Doctrine documentation`_.
6164

6265
Forms
6366
-----

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.