File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -419,6 +419,39 @@ that the ORM resolves to:
419
419
There are lots of other configuration options that you can use to overwrite
420
420
certain classes, but those are for very advanced use-cases only.
421
421
422
+ Shortened Configuration Syntax
423
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
424
+
425
+ When you are only using one entity manager, all config options available
426
+ can be placed directly under ``doctrine.orm `` config level.
427
+
428
+ .. code-block :: yaml
429
+
430
+ doctrine :
431
+ orm :
432
+ # ...
433
+ query_cache_driver :
434
+ # ...
435
+ metadata_cache_driver :
436
+ # ...
437
+ result_cache_driver :
438
+ # ...
439
+ connection : ~
440
+ class_metadata_factory_name : Doctrine\ORM\Mapping\ClassMetadataFactory
441
+ default_repository_class : Doctrine\ORM\EntityRepository
442
+ auto_mapping : false
443
+ hydrators :
444
+ # ...
445
+ mappings :
446
+ # ...
447
+ dql :
448
+ # ...
449
+ filters :
450
+ # ...
451
+
452
+ This shortened version is commonly used in other documentation sections.
453
+ Keep in mind that you can't use both syntaxes at the same time.
454
+
422
455
Caching Drivers
423
456
~~~~~~~~~~~~~~~
424
457
You can’t perform that action at this time.
0 commit comments