Skip to content

Commit 6cd4776

Browse files
committed
Merge branch '5.1'
* 5.1: Minor tweak Update best_practices.rst Remove paragraph about mapping override
2 parents 37fd0ac + 4f23cc7 commit 6cd4776

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

best_practices.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ self-explanatory and not coupled to Symfony:
5252
├─ config/
5353
│ ├─ packages/
5454
│ └─ services.yaml
55-
└─ public/
55+
├─ migrations/
56+
├─ public/
5657
│ ├─ build/
5758
│ └─ index.php
5859
├─ src/
@@ -63,7 +64,6 @@ self-explanatory and not coupled to Symfony:
6364
│ ├─ Entity/
6465
│ ├─ EventSubscriber/
6566
│ ├─ Form/
66-
│ ├─ Migrations/
6767
│ ├─ Repository/
6868
│ ├─ Security/
6969
│ └─ Twig/

bundles/override.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,10 @@ inside a :doc:`compiler pass </service_container/compiler_passes>`.
9292
Entities & Entity Mapping
9393
-------------------------
9494

95-
If a bundle defines its entity mapping in configuration files instead of
96-
annotations, you can override them as any other regular bundle configuration
97-
file. The only caveat is that you must override all those mapping configuration
98-
files and not just the ones you actually want to override.
99-
100-
If a bundle provides a mapped superclass (such as the ``User`` entity in the
101-
FOSUserBundle) you can override its attributes and associations. Learn more
102-
about this feature and its limitations in `the Doctrine documentation`_.
95+
Overriding entity mapping is only possible if a bundle provides a mapped
96+
superclass (such as the ``User`` entity in the FOSUserBundle). It's possible to
97+
override attributes and associations in this way. Learn more about this feature
98+
and its limitations in `the Doctrine documentation`_.
10399

104100
Forms
105101
-----

0 commit comments

Comments
 (0)