8000 Lock table not create automatically · Issue #44369 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

Lock table not create automatically #44369

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

Closed

martinssipenko opened this issue Nov 30, 2021 · 0 comments
Closed

Lock table not create automatically #44369

martinssipenko opened this issue Nov 30, 2021 · 0 comments

Comments

@martinssipenko
Copy link
Contributor
martinssipenko commented Nov 30, 2021

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 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();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0