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

Symfony 6 and DBAL 3 compat #1345

Merged
merged 2 commits into from
Sep 17, 2021
Merged

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Sep 16, 2021

Q A
Bug fix? no
New feature? yes
Doc updated no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets N/A
License MIT

This PR allows for Symfony 6 to be installed in dev and fixes an issue in the tests when DBAL 3 is installed.

For Symfony 6, after forcing dev dependencies to be installed, I had zero test failures.

Forcing dev dependencies to be installed brought in ORM 2.10 which supports DBAL 3 now. DBAL 3 drops support for the UUID generator, which was used in a couple of the test fixtures. To fix compatibility and not lose test coverage, I changed the ID columns to the "auto" strategy then added a new $guid property to the BlogPost fixture as a guid column and updated the test checking the handling of guid columns to use that.

@goetas goetas merged commit 4a9f2e4 into schmittjoh:master Sep 17, 2021
@goetas
Copy link
Collaborator

goetas commented Sep 17, 2021

thanks!

@mbabker mbabker deleted the sf-6-and-dbal-3 branch September 17, 2021 21:57
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.

2 participants