Skip to content
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

Custom platform is not used for connection #6523

Closed
danielgelling opened this issue Sep 10, 2024 · 2 comments
Closed

Custom platform is not used for connection #6523

danielgelling opened this issue Sep 10, 2024 · 2 comments

Comments

@danielgelling
Copy link

Bug Report

dbal version: 4.1.1

Summary

Providing a custom platform to the dbal configuration is not used when determining the platform for the connection.

Current behaviour

The default platform based on the server_version of the connection is used.

How to reproduce

Add a custom platform to your connection in doctrine.yaml configuration:

doctrine:
    dbal:
        platform_service: App\Doctrine\CustomPlatform

Expected behaviour

Expecting the connection to use App\Doctrine\CustomPlatform as platform instead of the platform determined by Doctrine\DBAL\Driver::getDatabasePlatform()

I already found and fixed the bug locally. Will create a PR.

@danielgelling
Copy link
Author

danielgelling commented Sep 10, 2024

Closing because this feature has moved to driver middleware, see #2873 (comment)

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant