Skip to content

Commit c8fec39

Browse files
committed
[reference] Updated the doctrine configuration reference
1 parent 183736a commit c8fec39

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

reference/configuration/doctrine.rst

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Configuration Reference
3030
charset: UTF8
3131
logging: %kernel.debug%
3232
platform_service: MyOwnDatabasePlatformService
33+
mapping_types:
34+
enum: string
3335
conn1:
3436
# ...
3537
types:
@@ -91,9 +93,12 @@ Configuration Reference
9193
charset="UTF8"
9294
logging="%kernel.debug%"
9395
platform-service="MyOwnDatabasePlatformService"
94-
/>
96+
>
97+
<doctrine:option key="foo">bar</doctrine:option>
98+
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
99+
</doctrine:connection>
95100
<doctrine:connection name="conn1" />
96-
<doctrine:type name="custom" class="Acme\HelloBundle\MyCustomType" />
101+
<doctrine:type name="custom">Acme\HelloBundle\MyCustomType</doctrine:type>
97102
</doctrine:dbal>
98103
99104
<doctrine:orm default-entity-manager="default" auto-generate-proxy-classes="true" proxy-namespace="Proxies" proxy-dir="%kernel.cache_dir%/doctrine/orm/Proxies">
@@ -235,6 +240,10 @@ can configure. The following block shows all possible configuration keys:
235240
charset: UTF8
236241
logging: %kernel.debug%
237242
platform_service: MyOwnDatabasePlatformService
243+
mapping_types:
244+
enum: string
245+
types:
246+
custom: Acme\HelloBundle\MyCustomType
238247
239248
.. code-block:: xml
240249
@@ -258,7 +267,11 @@ can configure. The following block shows all possible configuration keys:
258267
charset="UTF8"
259268
logging="%kernel.debug%"
260269
platform-service="MyOwnDatabasePlatformService"
261-
/>
270+
>
271+
<doctrine:option key="foo">bar</doctrine:option>
272+
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
273+
<doctrine:type name="custom">Acme\HelloBundle\MyCustomType</doctrine:type>
274+
</doctrine:dbal>
262275
</doctrine:config>
263276
264277
If you want to configure multiple connections in YAML, put them under the

0 commit comments

Comments
 (0)