B
B
BonBon Slick2018-08-08 23:40:31
symfony
BonBon Slick, 2018-08-08 23:40:31

One field should be if there is no other in the form?

If there is one field, then there should not be another, and vice versa.
I do not see the validation rule among the standard ones for such functionality.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Vlastovskiy, 2018-08-09
@BonBonSlick

You can write the necessary validator for the model/entity.
But it will be more correct to change the form (add or remove fields) on form events, before validation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question