@@ -108,10 +108,8 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document
108
108
109
109
<doctrine : config >
110
110
<doctrine : dbal >
111
- <doctrine : dbal default-connection =" default" >
112
- <doctrine : connection >
113
- <doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
114
- </doctrine : connection >
111
+ <doctrine : type name =" custom_first" class =" Acme\HelloBundle\Type\CustomFirst" />
112
+ <doctrine : type name =" custom_second" class =" Acme\HelloBundle\Type\CustomSecond" />
115
113
</doctrine : dbal >
116
114
</doctrine : config >
117
115
</container >
@@ -121,12 +119,9 @@ mapping types, read Doctrine's `Custom Mapping Types`_ section of their document
121
119
// app/config/config.php
122
120
$container->loadFromExtension('doctrine', array(
123
121
'dbal' => array(
124
- 'connections' => array(
125
- 'default' => array(
126
- 'mapping_types' => array(
127
- 'enum' => 'string',
128
- ),
129
- ),
122
+ 'types' => array(
123
+ 'custom_first' => 'Acme\HelloBundle\Type\CustomFirst',
124
+ 'custom_second' => 'Acme\HelloBundle\Type\CustomSecond',
130
125
),
131
126
),
132
127
));
@@ -165,8 +160,10 @@ mapping type:
165
160
166
161
<doctrine : config >
167
162
<doctrine : dbal >
168
- <doctrine : type name =" custom_first" class =" Acme\HelloBundle\Type\CustomFirst" />
169
- <doctrine : type name =" custom_second" class =" Acme\HelloBundle\Type\CustomSecond" />
163
+ <doctrine : dbal default-connection =" default" >
164
+ <doctrine : connection >
165
+ <doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
166
+ </doctrine : connection >
170
167
</doctrine : dbal >
171
168
</doctrine : config >
172
169
</container >
@@ -176,9 +173,12 @@ mapping type:
176
173
// app/config/config.php
177
174
$container->loadFromExtension('doctrine', array(
178
175
'dbal' => array(
179
- 'types' => array(
180
- 'custom_first' => 'Acme\HelloBundle\Type\CustomFirst',
181
- 'custom_second' => 'Acme\HelloBundle\Type\CustomSecond',
176
+ 'connections' => array(
177
+ 'default' => array(
178
+ 'mapping_types' => array(
179
+ 'enum' => 'string',
180
+ ),
181
+ ),
182
182
),
183
183
),
184
184
));
0 commit comments