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

Platform override #6354

Open
arokettu opened this issue Apr 8, 2024 · 4 comments
Open

Platform override #6354

arokettu opened this issue Apr 8, 2024 · 4 comments

Comments

@arokettu
Copy link

arokettu commented Apr 8, 2024

Q A
Version 4.0.1

https://www.doctrine-project.org/projects/doctrine-dbal/en/4.0/reference/platforms.html

 'platform' => $myPlatform,
  1. platform param was removed but still documented
  2. what is the current procedure to override platform?
@derrabus
Copy link
Member

derrabus commented Apr 8, 2024

  1. platform param was removed but still documented

Please send a PR to fix the documentation.

  1. what is the current procedure to override platform?

A driver middleware.

@k0d3r1s
Copy link

k0d3r1s commented Apr 12, 2024

@derrabus can you, please, point to documentation of overriding platform? i can find some examples of driver override but nothing with platform override

@derrabus
Copy link
Member

@derrabus can you, please, point to documentation of overriding platform?

I cannot, sorry.

A driver middleware can override the platform. This is the way.

@greg0ire
Copy link
Member

@k0d3r1s let's use git!
When was it removed? git log -S platform -p src/DriverManager.php says in 8cdded8, which is attached to #5703, which points to #5699, which contains the example you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants