webgriffe/SyliusAkeneoPlugin

[BUG] - Do not add product translation entity for locale not used in any channels of the product

lruozzi9 opened this issue · 1 comments

Describe the bug
If you have an Akeneo product with one attribute handled by the TranslatablePropertyValueHandler different from the name in a language without the name attribute translated in that locale you get an error due to the not nullable name property on ProductTranslation. I'm not sure this is a "real bug", why do you have an attribute translated in a locale but not the name of the product? Anyway, I think the right solution to this problem, in my case, could be to check if the locale is used in at least one of the channels for the products, if not we can skip it.

This is related to #148