-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Debug command for doctrine always return the default values #28016
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
Comments
well, that's actually logical. The url is not parsed at the config level, but by DBAL itself at the time of creating the Connection object (and this is precisely why using an environment variable accessed at runtime works for this param) |
It would be interesting to alert the developer in this case. |
What case exactly? This is by design from Doctrine's point of view; you either configure a url, or a host/user/pass/db combination. |
actually, you can even mix both. If your URL does not provide a username or password, the one configured explicitly will still be used for instance. |
However, I think there is a problem. |
Symfony version(s) affected: 4.*
Description
First, set your
DATABASE_URL
from.env
orphpunit.xml
fileThen execute the following command:
bin/console debug:config doctrine
or
bin/console debug:config doctrine --env=test
The output will not return the conform
host
,user
,password
parameters:However, on version 3.4 or lower the command returns the values passed from the
parameters.yml
fileThe text was updated successfully, but these errors were encountered: