We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The dbname_suffix is being ignored, even when a connection is specified. Config used:
config/packages/doctrine.yaml
doctrine: dbal: default_connection: default connections: default: url: '%env(resolve:DATABASE_URL_WRITER)%' server_version: '13.4' driver: pdo_pgsql replicas: replica1: url: '%env(DATABASE_URL_READER)%'
config/packages/test/doctrine.yaml
doctrine: dbal: connections: default: dbname_suffix: '_test%env(default::TEST_TOKEN)%' replicas: replica1: dbname_suffix: '_test%env(default::TEST_TOKEN)%'
The text was updated successfully, but these errors were encountered:
I have the same issue. Is there any workaround?
./bin/console doctrine:database:create --env=test => creates 'app_test'
./bin/console doctrine:database:create --env=test
./bin/console doctrine:migrations:migrate --env=test => uses 'app'
./bin/console doctrine:migrations:migrate --env=test
same for fixtures, that also uses just 'app'
Edit:
for anyone wondering, I fixed it this way:
when@prod: doctrine: dbal: connections: default: replicas: replica1: url: '%env(resolve:DATABASE_READ_URL)%'
This only sets the replica url in production, not in the test-env.
Sorry, something went wrong.
No branches or pull requests
The dbname_suffix is being ignored, even when a connection is specified. Config used:
config/packages/doctrine.yaml
config/packages/test/doctrine.yaml
The text was updated successfully, but these errors were encountered: