StofDoctrineExtensionsBundle icon indicating copy to clipboard operation
StofDoctrineExtensionsBundle copied to clipboard

Translatable + Symfony validation assert don't work together

Open Elexandre opened this issue 12 years ago • 2 comments

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?

Elexandre avatar Nov 01 '12 21:11 Elexandre

Is there any solution for this?

alibahsisoglu avatar Apr 09 '13 14:04 alibahsisoglu

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?

danielsan80 avatar Mar 03 '14 10:03 danielsan80