@@ -123,8 +123,8 @@ Type Directory
123123Commands ``src/Command/ ``
124124Controllers ``src/Controller/ ``
125125Service Container Extensions ``src/DependencyInjection/ ``
126- Doctrine ORM entities (when not using annotations) ``src/Entity/ ``
127- Doctrine ODM documents (when not using annotations) ``src/Document/ ``
126+ Doctrine ORM entities ``src/Entity/ ``
127+ Doctrine ODM documents ``src/Document/ ``
128128Event Listeners ``src/EventListener/ ``
129129Configuration (routes, services, etc.) ``config/ ``
130130Web Assets (CSS, JS, images) ``public/ ``
@@ -162,6 +162,15 @@ standard Symfony autoloading instead.
162162A bundle should also not embed third-party libraries written in JavaScript,
163163CSS or any other language.
164164
165+ Doctrine Entities/Documents
166+ ---------------------------
167+
168+ If the bundle includes Doctrine ORM entities and/or ODM documents, it's
169+ recommended to define their mapping using XML files stored in
170+ ``Resources/config/doctrine/ ``. This allows to override that mapping using the
171+ :doc: `standard Symfony mechanism to override bundle parts </bundles/override >`.
172+ This is not possible when using annotations/attributes to define the mapping.
173+
165174Tests
166175-----
167176
0 commit comments