Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitebaed21

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.rstThe 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 parents7e09383 +8d9389e commitebaed21

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
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:dbaldefault-connection="default">
162-
<doctrine:connection>
163-
<!-- other connections parameters-->
164-
<doctrine:mapping-typename="enum">string</doctrine:mapping-type>
165-
</doctrine:connection>
158+
<doctrine:mapping-typename="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)

[8]ページ先頭

©2009-2025 Movatter.jp