You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, if you try to run doctrine:migrations:migrate with driverOptions (in my case TLS configuration), you get this:
In AbstractMySQLDriver.php line 110:
An exception occurred in driver: SQLSTATE[HY000] [3159] Connections using insecure transport are prohibited while -
-require_secure_transport=ON.
In PDOConnection.php line 31:
SQLSTATE[HY000] [3159] Connections using insecure transport are prohibited while --require_secure_transport=ON.
In PDOConnection.php line 27:
SQLSTATE[HY000] [3159] Connections using insecure transport are prohibited while --require_secure_transport=ON.
I think a better fix for now would be to revert this change, and add some special behaviour to the create/drop commands?
The text was updated successfully, but these errors were encountered:
petewalker
added a commit
to petewalker/DoctrineBundle
that referenced
this issue
Nov 10, 2020
…verOptions
Reverts the changes made in doctrine#1240, and applies the passing down of `driverOptions` manually in `CreateDatabaseDoctrineCommand` and `DropDatabaseDoctrineCommand`
Resolvesdoctrine#1252
Follow-up from #1230
The fix in #1240 has allowed
doctrine:database:create
anddoctrine:database:drop
to work, but it's broken pretty much everything else in v1.12.11The change in the above PR moves the
driverOptions
from the root of the connection params array intomaster
(if you're usingMasterSlaveConnection
.This is fine in the create/drop commands, because they manipulate the params array before the connection is made, and build a new one.
However, the base
MasterSlaveConnection
expects thedriverOptions
to be in the root of the params array:So, if you try to run
doctrine:migrations:migrate
withdriverOptions
(in my case TLS configuration), you get this:I think a better fix for now would be to revert this change, and add some special behaviour to the create/drop commands?
The text was updated successfully, but these errors were encountered: