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
You can, after creating the Connection, get its event manager and set it on the platform yourself... I don't know if there are any events that might fire in the meantime that could be missed if done this way, but it seems not since detectDatabasePlatform is already only called "just-in-time."
If that's in fact sufficient it would still probably be an issue with the documentation which indicates merely creating and passing the platform should be sufficient.
The text was updated successfully, but these errors were encountered:
Bug Report
The event manager is only injected into the platform in the
detectDatabasePlatform
method of Doctrine\DBAL\Connection. If you specify a platform, then the detection method is never called and the event manager is not injected.You can, after creating the Connection, get its event manager and set it on the platform yourself... I don't know if there are any events that might fire in the meantime that could be missed if done this way, but it seems not since
detectDatabasePlatform
is already only called "just-in-time."If that's in fact sufficient it would still probably be an issue with the documentation which indicates merely creating and passing the platform should be sufficient.
The text was updated successfully, but these errors were encountered: