-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Lock] create migration for lock table when DoctrineDbalStore is used #48999
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
[Lock] create migration for lock table when DoctrineDbalStore is used #48999
Conversation
4e2f094
to
e41cc54
Compare
e41cc54
to
f6780d5
Compare
edf99a4
to
a3df56e
Compare
I'm going to add a tag on the store definitions in order to inject them in the lockStoreSchemasubscriber |
src/Symfony/Bridge/Doctrine/SchemaListener/LockStoreSchemaSubscriber.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/Doctrine/SchemaListener/LockStoreSchemaSubscriber.php
Outdated
Show resolved
Hide resolved
133d715
to
6fe3d20
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a doubt about the interest of this on PdoStore
. To use the schema, they will have to install doctrine/dbal
and instantiate a DBAL connection or use a DSN different from what is expected by PDO. What would be the point of not using DoctrineDBALStore
?
Please correct me if I'm wrong, If I understand you correctly, it's that by logic if one installed doctrine/dbal, he would have chosen DoctrineDbalStore ? I'm wondering if there is a possibility to get to that case, shouldn't we cover this case ? I mean if one doesn't want to install doctrine bundle then it will be ignored. Thanks you for your feedback ! |
That's it. Basically if the project uses The Cache For Sessions, there is a single I may be wrong, but I don't find the |
I get your point. Not useful in the sense of not logical to get to that case. So I will update my PR. |
6fe3d20
to
048f922
Compare
078ff4d
to
f64e7d9
Compare
f64e7d9
to
5e69f59
Compare
Thank you @alli83. |
Thank you @alli83 |
This PR was merged into the 6.3 branch. Discussion ---------- [Lock] update doc creation lock table linked to issue #17778 and PR symfony/symfony#48999 Update the methods to create the lock table. Commits ------- 20f38c1 [Lock] update doc creation lock table
…0689 (alli83) This PR was merged into the 6.3 branch. Discussion ---------- [Lock] add missing UPGRADE and CHANGELOG Lock mention #50689 | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | $isSameDatabase parameter for DoctrineDbalStore was added in #48999. Also related to #50689 Commits ------- 147067d [Lock] add missing UPGRADE and CHANGELOG Lock mention #50689
The purpose of this PR is to automatically generate the lock table with the make migration command when DoctrineDbalStore is used.
DoctrineBundle PR => doctrine/DoctrineBundle#1618