Updated Symfony Recipes - doctrine/doctrine-bundle

This commit is contained in:
2025-10-21 22:32:03 +02:00
parent 734a4a8fee
commit ca13863c41
5 changed files with 13 additions and 11 deletions
+2 -2
View File
@@ -23,10 +23,10 @@ APP_SECRET=VerySecretKey
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
DATABASE_URL="postgresql://app:[email protected]:54195/app?serverVersion=16&charset=utf8"
DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###
###> nelmio/cors-bundle ###
+1 -1
View File
@@ -35,5 +35,5 @@ services:
###> doctrine/doctrine-bundle ###
database:
ports:
- 54195:5432
- "5432"
###< doctrine/doctrine-bundle ###
+1 -1
View File
@@ -50,7 +50,7 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-!ChangeMe!}
POSTGRES_USER: ${POSTGRES_USER:-app}
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER:-app}"]
test: ["CMD", "pg_isready", "-d", "${POSTGRES_DB:-app}", "-U", "${POSTGRES_USER:-app}"]
timeout: 5s
retries: 5
start_period: 60s
+3 -1
View File
@@ -14,6 +14,8 @@ doctrine:
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
identity_generation_preferences:
Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity
auto_mapping: true
mappings:
App:
@@ -23,7 +25,7 @@ doctrine:
prefix: 'App\Entity'
alias: App
controller_resolver:
auto_mapping: true
auto_mapping: false
when@test:
doctrine:
+6 -6
View File
@@ -9,17 +9,17 @@
}
},
"doctrine/doctrine-bundle": {
"version": "2.12",
"version": "2.18",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "2.12",
"ref": "32f890075233ac4a1176e848a0f8e932ac6536d6"
"version": "2.13",
"ref": "620b57f496f2e599a6015a9fa222c2ee0a32adcb"
},
"files": [
"./config/packages/doctrine.yaml",
"./src/Entity/.gitignore",
"./src/Repository/.gitignore"
"config/packages/doctrine.yaml",
"src/Entity/.gitignore",
"src/Repository/.gitignore"
]
},
"doctrine/doctrine-migrations-bundle": {