Skip to content

Commit f0b719d

Browse files
committed
minor #17991 [Bundles] new directory structure for doctrine resources (MrYamous)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Bundles] new directory structure for doctrine resources Fixes #16110 Commits ------- 9009092 [Bundles] new directory structure for doctrine resources
2 parents 2696122 + 9009092 commit f0b719d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

bundles/best_practices.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,16 @@ Doctrine Entities/Documents
167167

168168
If the bundle includes Doctrine ORM entities and/or ODM documents, it's
169169
recommended to define their mapping using XML files stored in
170-
``Resources/config/doctrine/``. This allows to override that mapping using the
170+
``config/doctrine/``. This allows to override that mapping using the
171171
:doc:`standard Symfony mechanism to override bundle parts </bundles/override>`.
172172
This is not possible when using annotations/attributes to define the mapping.
173173

174+
.. caution::
175+
176+
The recommended bundle structure was changed in Symfony 5, read the
177+
`Symfony 4.4 bundle documentation`_ for information about the old
178+
structure.
179+
174180
Tests
175181
-----
176182

@@ -560,3 +566,4 @@ Learn more
560566
.. _`valid license identifier`: https://spdx.org/licenses/
561567
.. _`GitHub Actions`: https://docs.github.com/en/free-pro-team@latest/actions
562568
.. _`Travis CI`: https://docs.travis-ci.com/
569+
.. _`Symfony 4.4 bundle documentation`: https://symfony.com/doc/4.4/bundles.html#bundle-directory-structure

0 commit comments

Comments
 (0)