8000 Fix compatibility with DBAL 4.x by kissifrot · Pull Request #122 · symfony/security-acl · GitHub
[go: up one dir, main page]

Skip to content
10000

Fix compatibility with DBAL 4.x #122

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kissifrot
Copy link

Call to Table::addForeignKeyConstraint now expects only a string for the table argument, so ensure we send table name instead of Table object.

@kissifrot kissifrot force-pushed the fix-dbal-4 branch 7 times, most recently from 2afa233 to b872aaf Compare October 24, 2024 19:12
->expects($this->never())
->method('executeUpdate')
;
} else {
Copy link
Member

Choose a reason for hiding this comment

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

What if both methods exist?

Choose a reason for hiding this comment

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

As far as I can see in doctrine/dbal 3.9 and 3.10, both methods exist. However, executeUpdate is marked as deprecated, so it might be better to use executeStatement directly.

@kissifrot kissifrot force-pushed the fix-dbal-4 branch 3 times, most recently from c6c44e2 to 60d3470 Compare November 23, 2024 10:25
@kissifrot
Copy link
Author

I had to alter the way transactions in deleteAcl() worked, as enabling nested ones are marked as deprecated in DBAL 4.x and make the tests fail 🙁

@kissifrot kissifrot requested a review from derrabus November 23, 2024 10:42
@ronaldvdlp
Copy link

Any progress on this? Or any support needed?

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.

4 participants
0