@@ -12,17 +12,17 @@ Full Default Configuration
1212
1313 ..code-block ::yaml
1414
15- # app/ config/config.yml
15+ # config/packages/doctrine.yaml
1616doctrine :
1717dbal :
1818default_connection :default
1919types :
2020# A collection of custom types
2121# Example
2222some_custom_type :
23- class :Acme\HelloBundle \MyCustomType
23+ class :App\Bridge\Doctrine\DBAL \MyCustomType
2424commented :true
25-
25+
2626
2727connections :
2828# A collection of different named connections (e.g. default, conn2, etc)
@@ -75,11 +75,11 @@ Full Default Configuration
7575mapping_types :
7676# an array of mapping types
7777name :[]
78-
78+
7979# If defined, only the tables whose names match this regular expression are managed
8080# by the schema tool (in this example, any table name not starting with `wp_`)
8181# schema_filter: '/^(?!wp_)/'
82-
82+
8383slaves :
8484
8585# a collection of named slave connections (e.g. slave1, slave2)
@@ -163,17 +163,17 @@ Full Default Configuration
163163# a collection of string functions
164164string_functions :
165165# example
166- # test_string:Acme\HelloBundle \DQL\StringFunction
166+ # test_string:App\Bridge\Doctrine \DQL\StringFunction
167167
168168# a collection of numeric functions
169169numeric_functions :
170170# example
171- # test_numeric:Acme\HelloBundle \DQL\NumericFunction
171+ # test_numeric:App\Bridge\Doctrine \DQL\NumericFunction
172172
173173# a collection of datetime functions
174174datetime_functions :
175175# example
176- # test_datetime:Acme\HelloBundle \DQL\DatetimeFunction
176+ # test_datetime:App\Bridge\Doctrine \DQL\DatetimeFunction
177177
178178# Register SQL Filters in the entity manager
179179filters :
@@ -184,7 +184,7 @@ Full Default Configuration
184184
185185 ..code-block ::xml
186186
187- <!-- app/ config/config .xml-->
187+ <!-- config/packages/doctrine .xml-->
188188 <?xml version =" 1.0" encoding =" UTF-8" ?>
189189 <container xmlns =" http://symfony.com/schema/dic/services"
190190xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
@@ -204,22 +204,22 @@ Full Default Configuration
204204user =" user"
205205password =" secret"
206206driver =" pdo_mysql"
207- driver-class =" MyNamespace\MyDriverImpl "
207+ driver-class =" App\Bridge\Doctrine\DBAL\MyDatabaseDriver "
208208path =" %kernel.project_dir%/var/data/data.sqlite"
209209memory =" true"
210210unix-socket =" /tmp/mysql.sock"
211- wrapper-class =" MyDoctrineDbalConnectionWrapper "
211+ wrapper-class =" App\Bridge\Doctrine\DBAL\MyConnectionWrapper "
212212charset =" UTF8"
213213logging =" %kernel.debug%"
214- platform-service =" MyOwnDatabasePlatformService "
214+ platform-service =" App\Bridge\Doctrine\DBAL\MyDatabasePlatformService "
215215server-version =" 5.6"
216216keep-slave =" false"
217217 >
218218 <doctrine : option key =" foo" >bar</doctrine : option >
219219 <doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
220220 </doctrine : connection >
221221 <doctrine : connection name =" conn1" />
222- <doctrine : type name =" custom" >Acme\HelloBundle \MyCustomType</doctrine : type >
222+ <doctrine : type name =" custom" >App\Bridge\Doctrine\DBAL \MyCustomType</doctrine : type >
223223 </doctrine : dbal >
224224
225225 <doctrine : orm
@@ -247,15 +247,15 @@ Full Default Configuration
247247
248248 <doctrine : dql >
249249 <doctrine : string-function name =" test_string" >
250- Acme\HelloBundle \DQL\StringFunction
250+ App\Bridge\Doctrine \DQL\StringFunction
251251 </doctrine : string-function >
252252
253253 <doctrine : numeric-function name =" test_numeric" >
254- Acme\HelloBundle \DQL\NumericFunction
254+ App\Bridge\Doctrine \DQL\NumericFunction
255255 </doctrine : numeric-function >
256256
257257 <doctrine : datetime-function name =" test_datetime" >
258- Acme\HelloBundle \DQL\DatetimeFunction
258+ App\Bridge\Doctrine \DQL\DatetimeFunction
259259 </doctrine : datetime-function >
260260 </doctrine : dql >
261261 </doctrine : entity-manager >
@@ -301,23 +301,23 @@ The following block shows all possible configuration keys:
301301password :secret
302302driver :pdo_mysql
303303# the DBAL driverClass option
304- driver_class :MyNamespace\MyDriverImpl
304+ driver_class :App\Bridge\Doctrine\DBAL\MyDatabaseDriver
305305# the DBAL driverOptions option
306306options :
307307foo :bar
308308path :' %kernel.project_dir%/app/data/data.sqlite'
309309memory :true
310310unix_socket :/tmp/mysql.sock
311311# the DBAL wrapperClass option
312- wrapper_class :MyDoctrineDbalConnectionWrapper
312+ wrapper_class :App\Bridge\Doctrine\DBAL\MyConnectionWrapper
313313charset :UTF8
314314logging :' %kernel.debug%'
315- platform_service :MyOwnDatabasePlatformService
315+ platform_service :App\Bridge\Doctrine\DBAL\MyDatabasePlatformService
316316server_version :5.6
317317mapping_types :
318318enum :string
319319types :
320- custom :Acme\HelloBundle \MyCustomType
320+ custom :App\Bridge\Doctrine\DBAL \MyCustomType
321321
322322 ..code-block ::xml
323323
@@ -339,19 +339,19 @@ The following block shows all possible configuration keys:
339339user =" user"
340340password =" secret"
341341driver =" pdo_mysql"
342- driver-class =" MyNamespace\MyDriverImpl "
342+ driver-class =" App\Bridge\Doctrine\DBAL\MyDatabaseDriver "
343343path =" %kernel.project_dir%/var/data/data.sqlite"
344344memory =" true"
345345unix-socket =" /tmp/mysql.sock"
346- wrapper-class =" MyDoctrineDbalConnectionWrapper "
346+ wrapper-class =" App\Bridge\Doctrine\DBAL\MyConnectionWrapper "
347347charset =" UTF8"
348348logging =" %kernel.debug%"
349- platform-service =" MyOwnDatabasePlatformService "
349+ platform-service =" App\Bridge\Doctrine\DBAL\MyDatabasePlatformService "
350350server-version =" 5.6" >
351351
352352 <doctrine : option key =" foo" >bar</doctrine : option >
353353 <doctrine : mapping-type name =" enum" >string</doctrine : mapping-type >
354- <doctrine : type name =" custom" >Acme\HelloBundle \MyCustomType</doctrine : type >
354+ <doctrine : type name =" custom" >App\Bridge\Doctrine\DBAL \MyCustomType</doctrine : type >
355355 </doctrine : dbal >
356356 </doctrine : config >
357357 </container >
@@ -480,7 +480,7 @@ The following example shows an overview of the caching configurations:
480480# the 'service' type requires to define the 'id' option too
481481query_cache_driver :
482482type :service
483- id :my_doctrine_common_cache_service
483+ id :App\Bridge\Doctrine\ORM\MyCacheService
484484
485485 Mapping Configuration
486486~~~~~~~~~~~~~~~~~~~~~
@@ -662,7 +662,7 @@ If the ``type`` on the bundle configuration isn't set, the DoctrineBundle
662662will try to detect the correct mapping configuration format for the bundle.
663663
664664DoctrineBundle will look for files matching ``*.orm.[FORMAT] `` (e.g.
665- ``Post.orm.yml ``) in the configured ``dir `` of your mapping (if you're mapping
665+ ``Post.orm.yaml ``) in the configured ``dir `` of your mapping (if you're mapping
666666a bundle, then ``dir `` is relative to the bundle's directory).
667667
668668The bundle looks for (in this order) XML, YAML and PHP files.