-
-
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
Driver options are not passed to the primary\replica configuration #1416
Comments
We don't do that, because doing that causes other issues, like #1253. Can you try if you experience expected behaviour with doctrine-bundle 2.2.0? That's the version where we did pass driverOptions over to replicas. |
I did try 2.2.0 it does not work.
I mostly need to pass to all the connections \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => false. Is it a way how I can do it differently? |
I think you just have to pass options explicitly to each replica config instead of relying on them being passed from the primary config. How does your config look like? |
But I can not pass. The bundle does not support it. My config:
|
Can confirm. As of now, there is no way to pass DriverOptions via config . |
When we use
With one connection without replicas, this options passed in the driver configuration. (See \Doctrine\DBAL\Driver\PDO\MySQL\Driver::connect -->
$params['driverOptions']
)When we add a replica, then the bundle do not include those driver options in the replica and primary configuration options.
The text was updated successfully, but these errors were encountered: