Skip to content

Commit

Permalink
Merge branch '1.10'
Browse files Browse the repository at this point in the history
* 1.10:
  Fix Doctrine config
  Update phpstan/phpstan requirement from 0.12.86 to 0.12.88
  Update phpstan/phpstan-doctrine requirement from 0.12.33 to 0.12.38
  • Loading branch information
GSadee committed Jun 2, 2021
2 parents ba244da + 7d3d70e commit 1a8f97a
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 28 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"lchrusciel/api-test-case": "^5.0",
"phpspec/phpspec": "^7.0",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "0.12.86",
"phpstan/phpstan-doctrine": "0.12.33",
"phpstan/phpstan": "0.12.88",
"phpstan/phpstan-doctrine": "0.12.38",
"phpstan/phpstan-webmozart-assert": "0.12.12",
"phpunit/phpunit": "^8.5",
"stripe/stripe-php": "^6.43",
Expand Down
18 changes: 10 additions & 8 deletions config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ doctrine:
url: '%env(resolve:DATABASE_URL)%'
orm:
auto_generate_proxy_classes: '%kernel.debug%'
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
entity_managers:
default:
auto_mapping: true
mappings:
App:
is_bundle: false
type: annotation
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
20 changes: 11 additions & 9 deletions config/packages/prod/doctrine.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
doctrine:
orm:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider
entity_managers:
default:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider

services:
doctrine.result_cache_provider:
Expand Down
20 changes: 11 additions & 9 deletions config/packages/test_cached/doctrine.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
doctrine:
orm:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider
entity_managers:
default:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider

services:
doctrine.result_cache_provider:
Expand Down

0 comments on commit 1a8f97a

Please sign in to comment.