-
-
Notifications
You must be signed in to change notification settings - Fork 455
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
Console Commands: Possible bug - Using MasterSlaveConnection does not respect driverOptions #1230
Comments
It's a bc break in dbal 2.11. This is most likely duplicate issue of #1214. Please always check what you updated before regressions started to happen. |
This isn't the same issue. We're currently pinned at dbal 2.10 because of that issue. The change I made was to try and configure TLS. It works without the TLS config. |
To me this indeed looks like a bug in the command. We will then also have the same issue in other commands like CreateDatabaseDoctrineCommand |
@dmaicher technically not a bug in doctrine-bundle, it's a BC break in dbal. See doctrine/dbal#4295 (comment) that said, it's pretty dirty to be touching (the now it would probably be more future proof if we could get create/drop database methods added to dbal allowing properties to remain dbal's problem. |
@kralos As mentioned above, this is not caused by doctrine/dbal#4295 (comment) - it's a separate issue. In the above code, the However, I definitely agree with your sentiment that doctrine-bundle shouldn't be messing with the |
Check #1240 |
Fix #1230 - Console commands do not respect driverOptions when master/slave configuration is used
We're using
MasterSlaveConnection
to allow us to make use of read replicas in production.I'm trying to set up an SSL certificate with the connections as we'd like to enforce TLS on our connections. I'm using the below config:
Symfony responds to this config fine, and a TLS connection seems to be established with the MySQL server. However, when I try to run a CLI command:
When I inspect what's going on in the command:
The
driverOptions
key is present in the initial$params
array, but is then lost by this condition. If I replace with:It works. Is this a bug, or have I misconfigured?
The text was updated successfully, but these errors were encountered: