Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
CuyZ\ValinorBundle\ValinorBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
];
57 changes: 57 additions & 0 deletions app/config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
doctrine:
dbal:
dbname: '%env(DATABASE_NAME)%'
host: '%env(DATABASE_HOST)%'
port: '%env(DATABASE_PORT)%'
user: '%env(DATABASE_USER)%'
password: '%env(DATABASE_PASSWORD)%'
server_version: '5.7'

profiling_collect_backtrace: '%kernel.debug%'
use_savepoints: true
orm:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
auto_mapping: true
controller_resolver:
auto_mapping: false
mappings:
Accounting:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/Accounting/Entity'
prefix: 'AppBundle\Accounting\Entity'
alias: Accounting

when@test:
doctrine:
dbal:
dbname: 'web'
host: 'dbtest'
port: '3306'
user: 'root'
password: 'root'
server_version: '5.7'

when@prod:
doctrine:
orm:
auto_generate_proxy_classes: false
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
query_cache_driver:
type: pool
pool: doctrine.system_cache_pool
result_cache_driver:
type: pool
pool: doctrine.result_cache_pool

framework:
cache:
pools:
doctrine.result_cache_pool:
adapter: cache.app
doctrine.system_cache_pool:
adapter: cache.system
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"cuyz/valinor-bundle": "^2.0",
"cweagans/composer-patches": "^1.7",
"doctrine/dbal": "4.*",
"doctrine/doctrine-bundle": "^2.18",
"doctrine/orm": "^3.5",
"drewm/mailchimp-api": "^2.5",
"ekino/newrelic-bundle": "dev-patch-1#2cd9951c163bda2d18a1515b43ee574e51aac871",
"erusev/parsedown": "^1.6",
Expand Down Expand Up @@ -145,6 +147,7 @@
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-beberlei-assert": "^2.0",
"phpstan/phpstan-doctrine": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"phpunit/phpunit": "11.*",
"rector/rector": "^2.0",
Expand Down
Loading