Skip to content

Commit 0e36e6c

Browse files
committed
fixing bad merge
1 parent be7764b commit 0e36e6c

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

reference/configuration/doctrine.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,39 @@ that the ORM resolves to:
419419
There are lots of other configuration options that you can use to overwrite
420420
certain classes, but those are for very advanced use-cases only.
421421

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+
422455
Caching Drivers
423456
~~~~~~~~~~~~~~~
424457

0 commit comments

Comments
 (0)