We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is a question.
Based on https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#custom-driver-options driverOptions can be used to specify driver specific options.
driverOptions
For MSSQL I need to specify TrustServerCertificate=1. How can I specify such option in DSN URL so it is parsed correctly to driverOptions array?
TrustServerCertificate=1
The text was updated successfully, but these errors were encountered:
Something like this may work according to DriverManagerTest::testDatabaseUrl():
DriverManagerTest::testDatabaseUrl()
'Driver Options' => [ [ 'url' => 'sqlsrv://localhost/foo?driverOptions[TrustServerCertificate]=1', ], [ 'driverOptions' => [ 'TrustServerCertificate' => 1, ], ], ],
Sorry, something went wrong.
Works like a charm, thank you!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
This is a question.
Based on https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#custom-driver-options
driverOptions
can be used to specify driver specific options.For MSSQL I need to specify
TrustServerCertificate=1
. How can I specify such option in DSN URL so it is parsed correctly todriverOptions
array?The text was updated successfully, but these errors were encountered: