Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // FormType
- ->add('birthday', BirthdayType::class, [
- 'widget' => 'single_text',
- 'label' => 'Birthday',
- 'format' => 'd.m.Y',
- ])
- // DTO formularza
- /**
- * @Assert\Date
- * @Assert\NotBlank(
- * message = "Data urodzin nie może być pusta."
- * )
- */
- public $birthday;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement