@@ -80,15 +80,24 @@ information. By convention, this information is usually configured in an
80
80
.. code-block :: xml
81
81
82
82
<!-- app/config/config.xml -->
83
- <doctrine : config >
84
- <doctrine : dbal
85
- driver =" %database_driver%"
86
- host =" %database_host%"
87
- dbname =" %database_name%"
88
- user =" %database_user%"
89
- password =" %database_password%"
90
- >
91
- </doctrine : config >
83
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
84
+ <container xmlns =" http://symfony.com/schema/dic/services"
85
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
86
+ xmlns : doctrine =" http://symfony.com/schema/dic/doctrine"
87
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
88
+ http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd" >
89
+
90
+ <doctrine : config >
91
+ <doctrine : dbal
92
+ driver =" %database_driver%"
93
+ host =" %database_host%"
94
+ dbname =" %database_name%"
95
+ user =" %database_user%"
96
+ password =" %database_password%"
97
+ />
98
+ </doctrine : config >
99
+
100
+ </container >
92
101
93
102
.. code-block :: php
94
103
@@ -161,13 +170,22 @@ for you:
161
170
.. code-block :: xml
162
171
163
172
<!-- app/config/config.xml -->
164
- <doctrine : config
165
- driver =" pdo_sqlite"
166
- path =" %kernel.root_dir%/sqlite.db"
167
- charset =" UTF-8"
168
- >
169
- <!-- ... -->
170
- </doctrine : config >
173
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
174
+ <container xmlns =" http://symfony.com/schema/dic/services"
175
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
176
+ xmlns : doctrine =" http://symfony.com/schema/dic/doctrine"
177
+ xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
178
+ http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd" >
179
+
180
+ <doctrine : config
181
+ driver =" pdo_sqlite"
182
+ path =" %kernel.root_dir%/sqlite.db"
183
+ charset =" UTF-8"
184
+ >
185
+ <!-- ... -->
186
+ </doctrine : config >
187
+
188
+ </container >
171
189
172
190
.. code-block :: php
173
191
@@ -299,6 +317,7 @@ in a number of different formats including YAML, XML or directly inside the
299
317
.. code-block :: xml
300
318
301
319
<!-- src/Acme/StoreBundle/Resources/config/doctrine/Product.orm.xml -->
320
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
302
321
<doctrine-mapping xmlns =" http://doctrine-project.org/schemas/orm/doctrine-mapping"
303
322
xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
304
323
xsi : schemaLocation =" http://doctrine-project.org/schemas/orm/doctrine-mapping
@@ -833,9 +852,11 @@ To do this, add the name of the repository class to your mapping definition.
833
852
.. code-block :: xml
834
853
835
854
<!-- src/Acme/StoreBundle/Resources/config/doctrine/Product.orm.xml -->
836
-
837
- <!-- ... -->
838
- <doctrine-mapping >
855
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
856
+ <doctrine-mapping xmlns =" http://doctrine-project.org/schemas/orm/doctrine-mapping"
857
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
858
+ xsi : schemaLocation =" http://doctrine-project.org/schemas/orm/doctrine-mapping
859
+ http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" >
839
860
840
861
<entity name =" Acme\StoreBundle\Entity\Product"
841
862
repository-class =" Acme\StoreBundle\Entity\ProductRepository" >
@@ -1332,9 +1353,11 @@ the current date, only when the entity is first persisted (i.e. inserted):
1332
1353
.. code-block :: xml
1333
1354
1334
1355
<!-- src/Acme/StoreBundle/Resources/config/doctrine/Product.orm.xml -->
1335
-
1336
- <!-- ... -->
1337
- <doctrine-mapping >
1356
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
1357
+ <doctrine-mapping xmlns =" http://doctrine-project.org/schemas/orm/doctrine-mapping"
1358
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
1359
+ xsi : schemaLocation =" http://doctrine-project.org/schemas/orm/doctrine-mapping
1360
+ http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd" >
1338
1361
1339
1362
<entity name =" Acme\StoreBundle\Entity\Product" >
1340
1363
<!-- ... -->
0 commit comments