EasyAdminBundle: `validation_groups` is ignored
When I have this in my entity:
/**
* @ORM\Column(type="string", length=255, nullable=true)
* @Assert\NotBlank(groups={"foo"})
*/
private $firstName;
…and this in easy_admin.yaml:
easy_admin:
entities:
User:
class: App\Entity\User
form:
form_options: { validation_groups: ['Default'] }
…I’m getting the field marked as required.
easycorp/easyadmin-bundle 2.1.1
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- Update groups.rst Integrating the findings of https://github.com/EasyCorp/EasyAdminBundle/issues/2673#issuecomment-476299467 Please fix the link to [guess your form types] - I don't know how to li... — committed to ThomasLandauer/symfony-docs by ThomasLandauer 5 years ago
- Update forms.rst Integrating the findings of https://github.com/EasyCorp/EasyAdminBundle/issues/2673#issuecomment-476299467 Reason for moving the block "HTML5 Validation" down: This is just not t... — committed to ThomasLandauer/symfony-docs by ThomasLandauer 5 years ago
@xabbuh: Thanks for your patience! 😃