doctrine / dbal

Doctrine Database Abstraction Layer
https://www.doctrine-project.org/projects/dbal.html
MIT License
9.4k stars 1.33k forks source link

Unable to setup 'platform' in wrapper `Connection`, but still documented in 4.x #6459

Closed janedbal closed 1 week ago

janedbal commented 1 week ago

Summary

Since dbal 4, 'platform' key cannot be used in DriverManager::getConnection($params) (release note), but it is still present in documentation.

derrabus commented 1 week ago

You are correct, the documentation needs to be updated. PR welcome.

janedbal commented 1 week ago

What is the new official proper way? Implementing Doctrine\DBAL\Driver and returning the platform from MyDriver::getDatabasePlatform?

janedbal commented 1 week ago

Now I see this is a duplicate: https://github.com/doctrine/dbal/issues/6354#issuecomment-2051693300

derrabus commented 1 week ago

Closing as duplicate then. 🙂