webgriffe / SyliusAkeneoPlugin

Plugin allowing to import data from Akeneo PIM to your Sylius store.
https://webgriffe.github.io/SyliusAkeneoPlugin/
MIT License
23 stars 2 forks source link

[BUG] - Product without any product translation will fail on post create event #195

Open lruozzi9 opened 10 months ago

lruozzi9 commented 10 months ago

If a new product does not have any attribute handled by the translation property value handler, it will be created without it. All looks good, but then on the product post-create event, someone seems to create this product translation and then will fail while persisting on Db because the name is null.

A possible solution could be to always create the product translation for the default locale so that the validation will then fail.