Skip to content

Make compatible with DBAL 3 #29

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

Merged
merged 1 commit into from
May 25, 2021
Merged

Make compatible with DBAL 3 #29

merged 1 commit into from
May 25, 2021

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented May 2, 2021

The only change needed is updating the acl:init command to not use the deprecated API.

@@ -25,7 +25,8 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "^1.6.12|^2.0",
"doctrine/dbal": "~2.2",
"doctrine/dbal": "^2.13.1|^3.1",
"doctrine/orm": "^2.7.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The ORM wasn't being loaded in at all, and the AclSchemaListener class is an ORM event listener, so I added it in here as well.

Copy link
Member

Choose a reason for hiding this comment

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

If we add the ORM to the dependencies, we won't run tests against DBAL 3 because the ORM does not support it yet and thus blocks the installation. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It’s one of those odd quirks right now. A package supporting the DBAL and ORM can work on DBAL 3 support, but can’t actually get DBAL 3 installed. Dependency chains are fun 😆

@@ -25,7 +25,8 @@
},
"require-dev": {
"doctrine/doctrine-bundle": "^1.6.12|^2.0",
"doctrine/dbal": "~2.2",
"doctrine/dbal": "^2.13.1|^3.1",
"doctrine/orm": "^2.7.3",
Copy link
Member

Choose a reason for hiding this comment

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

If we add the ORM to the dependencies, we won't run tests against DBAL 3 because the ORM does not support it yet and thus blocks the installation. 🤔

@wouterj
Copy link
Member

wouterj commented May 25, 2021

Thank you @mbabker!

@wouterj wouterj merged commit 0ea1531 into symfony:master May 25, 2021
@mbabker mbabker deleted the dbal-3-compat branch May 25, 2021 19:10
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.

3 participants