Skip to content

Commit e3027d9

Browse files
add missing quotes and missing xsd schema
1 parent d75b53b commit e3027d9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

reference/configuration/doctrine.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,18 +192,22 @@ If you want to disable the `Autocommit`_ mode, you need to update your DBAL conf
192192
xmlns:doctrine="http://symfony.com/schema/dic/doctrine"
193193
xmlns="http://symfony.com/schema/dic/services"
194194
xsi:schemaLocation="http://symfony.com/schema/dic/services
195-
https://symfony.com/schema/dic/services/services-1.0.xsd>
195+
https://symfony.com/schema/dic/services/services-1.0.xsd
196+
http://symfony.com/schema/dic/doctrine
197+
https://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd">
198+
196199
<doctrine:config>
197200
<doctrine:dbal
198201
auto-commit="false"
199202
>
200203
<!-- Only if you are using DBAL with PDO -->
201-
<doctrine:option key-type="constant" key="PDO::ATTR_AUTOCOMMIT">false</doctrine:option>
204+
<doctrine:connection name="default">
205+
<doctrine:option key-type="constant" key="PDO::ATTR_AUTOCOMMIT">false</doctrine:option>
206+
</doctrine:connection>
202207
</doctrine:dbal>
203208
</doctrine:config>
204209
</container>
205210
206-
207211
If you are managing your database migrations using the `Doctrine Migrations Bundle`_, you must also register a listener to ensure that the last migration is properly commited:
208212

209213
.. configuration-block::

0 commit comments

Comments
 (0)