Skip to content
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

Saving content in 2 locales without flushing will raise a unique constraint error #179

Open
alexander-schranz opened this issue Jan 14, 2021 · 0 comments
Labels
Bug Error or unexpected behavior of already existing functionality

Comments

@alexander-schranz
Copy link
Member

alexander-schranz commented Jan 14, 2021

As written in #35. If content is saved in en and then saved in de it will at the following line create 2 unlocalizedDimension data with the same dimension attributes, when flushing this will end in a uniqueConstraint error.

$unlocalizedDimensionContent = $this->createContentDimension(
$contentRichEntity,
$dimensionContents,
$unlocalizedAttributes
);

This should be avoided by creating maybe an in memory cache. We have a similiar issue with the TagFactory here #176

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

No branches or pull requests

1 participant