Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function buildForm(FormBuilderInterface $builder, array $options)
- {
- $builder->add('name', TextType::class, [
- 'constraints' => [
- new NotBlank(),
- new Length(
- [
- 'min' => 2,
- 'max' => 255,
- ]
- ),
- ],
- ]);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement