Skip to content

Commit 4a046fa

Browse files
committed
Update doctrine.rst
Made more clear the shorten doctrine.yml syntax, leaving only the first level of configuration.
1 parent 69efced commit 4a046fa

File tree

1 file changed

+9
-45
lines changed

1 file changed

+9
-45
lines changed

reference/configuration/doctrine.rst

+9-45
Original file line numberDiff line numberDiff line change
@@ -424,59 +424,23 @@ for each entity manager can be placed directly under doctrine.orm config level.
424424
orm:
425425
# ...
426426
query_cache_driver:
427-
type: array # Required
428-
host: ~
429-
port: ~
430-
instance_class: ~
431-
class: ~
427+
# ...
432428
metadata_cache_driver:
433-
type: array # Required
434-
host: ~
435-
port: ~
436-
instance_class: ~
437-
class: ~
429+
# ...
438430
result_cache_driver:
439-
type: array # Required
440-
host: ~
441-
port: ~
442-
instance_class: ~
443-
class: ~
444-
connection: ~
431+
# ...
432+
connection: ~
445433
class_metadata_factory_name: Doctrine\ORM\Mapping\ClassMetadataFactory
446434
default_repository_class: Doctrine\ORM\EntityRepository
447-
auto_mapping: false
435+
auto_mapping: false
448436
hydrators:
449-
# An array of hydrator names
450-
hydrator_name: []
437+
# ...
451438
mappings:
452-
# An array of mappings, which may be a bundle name or something else
453-
mapping_name:
454-
mapping: true
455-
type: ~
456-
dir: ~
457-
alias: ~
458-
prefix: ~
459-
is_bundle: ~
439+
# ...
460440
dql:
461-
# a collection of string functions
462-
string_functions:
463-
# example
464-
# test_string: Acme\HelloBundle\DQL\StringFunction
465-
466-
# a collection of numeric functions
467-
numeric_functions:
468-
# example
469-
# test_numeric: Acme\HelloBundle\DQL\NumericFunction
470-
471-
# a collection of datetime functions
472-
datetime_functions:
473-
# example
474-
# test_datetime: Acme\HelloBundle\DQL\DatetimeFunction
441+
# ...
475442
filters:
476-
# An array of filters
477-
some_filter:
478-
class: ~ # Required
479-
enabled: false
443+
# ...
480444
481445
This shorten version is commonly used in other documentation sections. Keep in mind that you can't use both syntax at same time.
482446

0 commit comments

Comments
 (0)