8000 Update dbal.rst by bpiepiora · Pull Request #3944 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Update dbal.rst #3944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update dbal.rst
The SchemaTool throws an error if mapping_types are configured under default.connection. If configured under dbal everything works fine.
  • Loading branch information
bpiepiora committed Jun 13, 2014
commit bcfa370275fc40a86761a9386ebf82f203fc8482
24 changes: 6 additions & 18 deletions cookbook/doctrine/dbal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,8 @@ mapping type:
# app/config/config.yml
doctrine:
dbal:
connections:
default:
# other connections parameters
mapping_types:
enum: string
mapping_types:
enum: string

.. code-block:: xml

Expand All @@ -158,11 +155,7 @@ mapping type:

<doctrine:config>
<doctrine:dbal>
<doctrine:dbal default-connection="default">
<doctrine:connection>
<!-- other connections parameters -->
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
</doctrine:connection>
<doctrine:mapping-type name="enum">string</doctrine:mapping-type>
</doctrine:dbal>
</doctrine:config>
</container>
Expand All @@ -172,14 +165,9 @@ mapping type:
// app/config/config.php
$container->loadFromExtension('doctrine', array(
'dbal' => array(
'connections' => array(
'default' => array(
// other connection parameers
'mapping_types' => array(
'enum' => 'string',
),
),
),
mapping_types' => array(
'enum' => 'string',
),
),
));

Expand Down
0