Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebaed21

Browse filesBrowse files
committed
minor symfony#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 symfony#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
Copy full SHA for ebaed21

File tree

Expand file treeCollapse file tree

1 file changed

+6
-18
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-18
lines changed

‎cookbook/doctrine/dbal.rst

Copy file name to clipboardExpand all lines: cookbook/doctrine/dbal.rst
+6-18Lines changed: 6 additions & 18 deletions
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-
),
181-
),
182-
),
168+
mapping_types' => array(
169+
'enum' => 'string',
170+
),
183171
),
184172
));
185173

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.