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

Deprecate "collate" default table option #1478

Merged
merged 1 commit into from
Feb 14, 2022

Conversation

greg0ire
Copy link
Member

"collation" is what is expected now on the DBAL side.

@@ -86,6 +87,11 @@ public function createConnection(array $params, ?Configuration $config = null, ?
after dropping support for doctrine/dbal 2, since this
package requires doctrine/dbal 3.3.2 or higher. */
if (isset($params['defaultTableOptions']['collate']) && defined('Doctrine\DBAL\Connection::PARAM_ASCII_STR_ARRAY')) {
Deprecation::trigger(
'doctrine/doctrine-bundle',
'https://github.com/doctrine/DoctrineBundle/pull/1478',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better if this was link to DBAL where they changed from collate to collation?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are right, since here defaultTableOptions is only validated as an array, and there is no validation of the keys. Let me change that.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
"collation" is what is expected now on the DBAL side.
@greg0ire greg0ire added this to the 2.6.0 milestone Feb 14, 2022
@greg0ire greg0ire merged commit cd1f115 into doctrine:2.6.x Feb 14, 2022
@greg0ire greg0ire deleted the deprecate-collate branch February 14, 2022 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants