Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Messenger] Leverage DBAL's getNativeConnection() method#44309
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedNov 28, 2021
Hey! I think@tgalopin has recently worked with this code. Maybe they can help review this? Cheers! Carsonbot |
nicolas-grekas commentedNov 28, 2021
|
derrabus commentedNov 28, 2021
In cache, we use In HttpFoundation, we let DBAL bootstrap a PDO Oracle connection.This code almost certainly breaks if you run it with DBAL 3. I have no Oracle test environment, I'm afraid. Otherwise, I would gladly fix it. 🙁 |
fabpot commentedNov 29, 2021
Thank you@derrabus. |
Doctrine DBAL 3 introduced a new driver middleware system that makes it difficult to unwrap the native PDO connection which we need for Messenger's Postgres transport. If an application would actually make use of the middleware system, accessing the PDO connection would become impossible for us.
Because of that, I have added a method
getNativeConnection()to DBAL withdoctrine/dbal#5037. This PR leverages this new method.