-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]: Fix unique constraint issue when updating advanced many-to-many #17344
Conversation
Review Checklist
|
Quality Gate passedIssues Measures |
but wait, i cannot reproduce the error described in pimcore/data-hub#819 anymore, @dkarlovi would you be able to check if it is still throwing errors? |
@kingjia90 Just tried to reproduce the issue described in the data-hub. Stumbled upon it while working on other things and was interested. Couldn´t reproduce it as well, updating the quantity in the relation's metadata worked fine. @dkarlovi Is the problem still there for you? Could you please try to reproduce it once again? Would be appreciated. |
…onstraint # Conflicts: # bundles/CoreBundle/src/DependencyInjection/Compiler/FlysystemVisibilityPass.php # bundles/CustomReportsBundle/src/Controller/Reports/CustomReportController.php # bundles/InstallBundle/src/Installer.php # lib/Tool.php # models/DataObject/ClassDefinition/Data/ReverseObjectRelation.php
Quality Gate passedIssues Measures |
Changes in this pull request
Potentially resolves #16265
Additional info
It seems that #15746 applied only to
ObjectMetadata
's CREATE TABLE while the migration ran for bothObjectMetadata
andElementMetadata
(as it should, supposing the ObjectMetadata anti-deadlock changes are fine).So existing data at the time migration ran are fine, anything new afterwards is likely not working fine and won't work with the fixes because
metadata_un
doesn't exists.A little bit tricky because we basically need to re-run
Pimcore\Bundle\CoreBundle\Migrations\Version20230616085142
somehow but shouldn't be in a bugfix release.