K
K
knowledge2019-12-04 11:09:19
symfony
knowledge, 2019-12-04 11:09:19

How to catch a space in symfony when saving a form?

In the database, the fields are required to be filled in.
In the form, an empty field does not allow sending.
I put a space and submit the form
. The form successfully passes
isVslid
. correct somewhere to solve this problem, otherwise it turns out that you write rules in the FormType, but they do not work with such a childish error

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2019-12-04
@knowledge

If I understand correctly, you need to use this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question