Closed LeTo34 closed 2 years ago
Hi
Did you try to assert both fields from the TranslatableTrait
?:
/**
* @var Collection<TranslationInterface>
*
* @Assert\Valid()
*/
protected $translations;
/**
* @see mergeNewTranslations
*
* @var Collection<TranslationInterface>
* @Assert\Valid()
*/
protected $newTranslations;
Hi, I'm trying to manage translations about a "Page" entity. I have NotBlank constraint on "title" field in the "PageTranslation" entity but its not working... When I submit the form with empty values, it's valid... If you have an idea about where is the problem... you're welcome ! I'm using SF 4.4
Here is the code
Page.php
PageTranslation.php
PageType.php
PageController.php
a2lix.yaml