Skip to content
New issue

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

bug: doctrine.dbal.default_connection is mandatory #20

Open
pierreboissinot opened this issue Dec 6, 2024 · 0 comments
Open

bug: doctrine.dbal.default_connection is mandatory #20

pierreboissinot opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pierreboissinot
Copy link
Member

pierreboissinot commented Dec 6, 2024

In a project not using an URL in dbal configuration:

doctrine:
    dbal:
        driver: 'pdo_pgsql'
        # See https://symfony.com/doc/current/doctrine.html#configuring-the-database
        dbname: '%env(resolve:DATABASE_NAME)%'
        host: '%env(resolve:DATABASE_HOST)%'
        port: '5432'
        charset: 'utf8'
        user: '%env(resolve:DATABASE_USER)%'
        password: '%env(resolve:DATABASE_PASSWORD)%'
        server_version: '%env(resolve:DATABASE_SERVER_VERSION)%'

There is a fatal error due to this line

$definition->replaceArgument('$url', $credentials['url']);

Screenshot from 2024-12-06 16-20-00

@thislg thislg added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants