diff --git a/cookbook/doctrine/dbal.rst b/cookbook/doctrine/dbal.rst
index ca886e472b5..8381b6ca661 100644
--- a/cookbook/doctrine/dbal.rst
+++ b/cookbook/doctrine/dbal.rst
@@ -108,10 +108,8 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document
-
-
- string
-
+
+
@@ -121,12 +119,9 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document
// app/config/config.php
$container->loadFromExtension('doctrine', array(
'dbal' => array(
- 'connections' => array(
- 'default' => array(
- 'mapping_types' => array(
- 'enum' => 'string',
- ),
- ),
+ 'types' => array(
+ 'custom_first' => 'Acme\HelloBundle\Type\CustomFirst',
+ 'custom_second' => 'Acme\HelloBundle\Type\CustomSecond',
),
),
));
@@ -165,8 +160,10 @@ mapping type:
-
-
+
+
+ string
+
@@ -176,9 +173,12 @@ mapping type:
// app/config/config.php
$container->loadFromExtension('doctrine', array(
'dbal' => array(
- 'types' => array(
- 'custom_first' => 'Acme\HelloBundle\Type\CustomFirst',
- 'custom_second' => 'Acme\HelloBundle\Type\CustomSecond',
+ 'connections' => array(
+ 'default' => array(
+ 'mapping_types' => array(
+ 'enum' => 'string',
+ ),
+ ),
),
),
));