dbal icon indicating copy to clipboard operation
dbal copied to clipboard

Platform override

Open arokettu opened this issue 1 year ago • 4 comments

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?

arokettu avatar Apr 08 '24 18:04 arokettu

  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.

derrabus avatar Apr 08 '24 23:04 derrabus

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

k0d3r1s avatar Apr 12 '24 11:04 k0d3r1s

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

I cannot, sorry.

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

derrabus avatar Apr 12 '24 12:04 derrabus

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

greg0ire avatar Apr 12 '24 12:04 greg0ire

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[bot] avatar Jul 26 '24 00:07 github-actions[bot]