You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony version 5.4.0 introduced a new Symfony\Component\Lock\Store\DoctrineDbalStore which should be used instead of Symfony\Component\Lock\Store\PdoStore. In contrast to PdoStore, the new DoctrineDbalStore no longer creates the lock table automatically in case it does not exist.
How to reproduce
$factory = new \Symfony\Component\Lock\LockFactory(
new \Symfony\Component\Lock\Store\DoctrineDbalStore('doctrine_url'),
);
$lock = $factory->createLock('test-lock', 300, false);
$lock->acquire();
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected
5.4.0
Description
Symfony version 5.4.0 introduced a new
Symfony\Component\Lock\Store\DoctrineDbalStore
which should be used instead ofSymfony\Component\Lock\Store\PdoStore
. In contrast toPdoStore
, the newDoctrineDbalStore
no longer creates the lock table automatically in case it does not exist.How to reproduce
The text was updated successfully, but these errors were encountered: