StofDoctrineExtensionsBundle
StofDoctrineExtensionsBundle copied to clipboard
Translatable + Symfony validation assert don't work together
Hello,
I tried to use the Translatable Behavior with Symfony assert in my entity class.
The validation Assert (@Blank for example) is correctly added to the non-translated field, but not to the translated ones.
Is there any way to correct or bypass this ?
Thanks?
Is there any solution for this?
Hi. I have the reverse problem, only in a specific case: I've set perisist_default_translation to true because in my domain the defaultLocale could be changed. The validation constraint NotBlank (in my case) is triggered. Without the constraint the defaultLocale version of a field is persisted in the record field too. So The NotBlank constraint should not be triggered.
Is there any trick to solve this problem?