8000 minor #3944 Update dbal.rst (bpiepiora) · symfony/symfony-docs@ebaed21 · GitHub
[go: up one dir, main page]

Skip to content

Commit ebaed21

Browse files
committed
minor #3944 Update dbal.rst (bpiepiora)
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #3944). Discussion ---------- Update dbal.rst The SchemaTool throws an error if mapping_types are configured under default.connection. If configured under dbal everything works fine. Commits ------- bcfa370 Update dbal.rst
2 parents 7e09383 + 8d9389e commit ebaed21

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

cookbook/doctrine/dbal.rst

Lines changed: 6 additions & 18 deletions
181
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,8 @@ mapping type:
141141
# app/config/config.yml
142142
doctrine:
143143
dbal:
144-
connections:
145-
default:
146-
# other connections parameters
147-
mapping_types:
148-
enum: string
144+
mapping_types:
145+
enum: string
149146
150147
.. code-block:: xml
151148
@@ -158,11 +155,7 @@ mapping type:
158155
159156
<doctrine:config>
160157
<doctrine:dbal>
161-
<doctrine:dbal default-connection="default">
162-
<doctrine:connection>
163-
<!-- other connections parameters -->
164-
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
165-
</doctrine:connection>
158+
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
166159
</doctrine:dbal>
167160
</doctrine:config>
168161
</container>
@@ -172,14 +165,9 @@ mapping type:
172165
// app/config/config.php
173166
$container->loadFromExtension('doctrine', array(
174167
'dbal' => array(
175-
'connections' => array(
176-
'default' => array(
177-
// other connection parameers
178-
'mapping_types' => array(
179-
'enum' => 'string',
180-
),
-
),
182-
),
168+
mapping_types' => array(
169+
'enum' => 'string',
170+
),
183171
),
184172
));
185173

0 commit comments

Comments
 (0)
0