Skip to content

Fix compatibility with DBAL 4.x#122

Open
kissifrot wants to merge 1 commit into
symfony:mainfrom
kissifrot:fix-dbal-4
Open

Fix compatibility with DBAL 4.x#122
kissifrot wants to merge 1 commit into
symfony:mainfrom
kissifrot:fix-dbal-4

Conversation

@kissifrot

Copy link
Copy Markdown

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
Comment thread Dbal/MutableAclProvider.php Outdated
Comment thread Tests/Dbal/MutableAclProviderTest.php Outdated
@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
Copy Markdown
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
Copy Markdown

Any progress on this? Or any support needed?

@ronaldvdlp

Copy link
Copy Markdown

Can this PR be checked and merged? Would be nice to be able to upgrade to DBAL 4.x!

public function deleteAcl(ObjectIdentityInterface $oid)
{
$this->connection->beginTransaction();
// DBAL 4.0 does not support nested transactions, so we need to keep track of the transaction state

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

DBAL 4.0 does not support nested transactions

Yes, it does?

@igordeveloper

igordeveloper commented Aug 22, 2025

Copy link
Copy Markdown

Hi @nicolas-grekas .

Do you have any news about this issue, can estimate a date for release with support sf7 + doctrine dbal 4+?

Thank you.

@kissifrot kissifrot requested a review from derrabus December 9, 2025 08:50
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.

5 participants