Skip to content

Conversation

@mvorisek
Copy link
Member

@mvorisek mvorisek commented Dec 9, 2024

This was not really an exclusive lock mutex.

BC break: TransactionalMutex class was removed

Use doctrine/dbal[1] or atk4/data[2] implementations to execute a callback wrapped in transaction. Of course, you can mimic these using standard \PDO beginTransaction/commit/rollback interface.

[1] https://github.com/doctrine/dbal/blob/v2.10.1/lib/Doctrine/DBAL/Connection.php#L1170
[2] https://github.com/atk4/data/blob/5.2.0/src/Persistence/Sql/Connection.php#L335

@mvorisek mvorisek marked this pull request as ready for review December 9, 2024 11:43
@mvorisek mvorisek merged commit df6a8f6 into master Dec 9, 2024
28 checks passed
@mvorisek mvorisek deleted the drop_transaction_mutex branch December 9, 2024 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants