One good approach is create your own validator that will validate not a property and, zelly class.
symfony.com/doc/current/cookbook/validation/custom_constraint.html the big plus Here is that You can then, if necessary, to determine as a service, and inject some dependencies.
There is also the possibility to process this check on event FormEvents::SUBMIT (At >= 2.1 < 2.3 FormEvents::BIND), and if there is an error that to add it addError(new FormError(/**... **/));
Rested in the validation of the collection, depending on the field. Don't know how to call a validator deeper. - verda.MacGyver commented on October 3rd 19 at 02:38