Answer the question
In order to leave comments, you need to log in
Why can't I override the NotBlank validation rule?
All good
people, please tell me what I'm doing wrong
in the symphony project using the plugin. It has validation rules written in the yaml file.
I'm trying to override the rule for one field and I can't figure out why it doesn't work correctly
BitBag\SyliusCmsPlugin\Entity\PageTranslation:
properties:
******* другие правила
content:
- NotBlank:
message: bitbag_sylius_cms_plugin.page.content.not_blank
groups: [bitbag]
- Length:
min: 2
minMessage: bitbag_sylius_cms_plugin.page.content.min_length
groups: [bitbag]
BitBag\SyliusCmsPlugin\Entity\PageTranslation:
properties:
content:
- NotBlank:
allowNull: true
groups: [bitbag]
- Blank:
groups: [bitbag]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question