@@ -123,8 +123,8 @@ Type Directory
123
123
Commands ``src/Command/ ``
124
124
Controllers ``src/Controller/ ``
125
125
Service 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/ ``
128
128
Event Listeners ``src/EventListener/ ``
129
129
Configuration (routes, services, etc.) ``config/ ``
130
130
Web Assets (CSS, JS, images) ``public/ ``
@@ -162,6 +162,15 @@ standard Symfony autoloading instead.
162
162
A bundle should also not embed third-party libraries written in JavaScript,
163
163
CSS or any other language.
164
164
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
+
165
174
Tests
166
175
-----
167
176
0 commit comments