@@ -80,15 +80,24 @@ information. By convention, this information is usually configured in an
8080code-block :: xml 
8181
8282 <!--  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 > 
92101
93102code-block :: php 
94103
@@ -161,13 +170,22 @@ for you:
161170code-block :: xml 
162171
163172 <!--  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 > 
171189
172190code-block :: php 
173191
@@ -299,6 +317,7 @@ in a number of different formats including YAML, XML or directly inside the
299317code-block :: xml 
300318
301319 <!--  src/Acme/StoreBundle/Resources/config/doctrine/Product.orm.xml -->  
320+  <?xml  version =" 1.0"  encoding =" UTF-8"  
302321 <doctrine-mapping  xmlns =" http://doctrine-project.org/schemas/orm/doctrine-mapping"  
303322 xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"  
304323 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.
833852code-block :: xml 
834853
835854 <!--  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"  >
839860
840861 <entity  name =" Acme\StoreBundle\Entity\Product"  
841862 repository-class =" Acme\StoreBundle\Entity\ProductRepository"  
@@ -1332,9 +1353,11 @@ the current date, only when the entity is first persisted (i.e. inserted):
13321353code-block :: xml 
13331354
13341355 <!--  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"  >
13381361
13391362 <entity  name =" Acme\StoreBundle\Entity\Product"  
13401363 <!--  ... -->  
0 commit comments