Validator calls
In
ValidationListener.php
line ():
if ($form->isRoot()) {// Form groups are validated internally (FormValidator). Here we don't set groups as they are retrieved into the validator.foreach ($this->validator->validate($form) as $violation) {// Allow the "invalid" constraint to be put onto// non-synchronized forms$allowNonSynchronized = $violation->getConstraint() instanceof Form && Form::NOT_SYNCHRONIZED_ERROR === $violation->getCode();
[ "value" => Symfony\Component\Form\Form {#5881 name: "" type_class: "Eccube\Form\Type\SearchProductBlockType" data: [ "name" => null ] } "constraints" => null "groups" => null ]
| Path | Message | Invalid value | Violation |
|---|---|---|---|
| children[category_id] | The selected choice is invalid. | "1" |
Symfony\Component\Validator\ConstraintViolation {#5958 -message: "The selected choice is invalid." -messageTemplate: "The selected choice is invalid." -parameters: [ "{{ value }}" => "1" ] -root: Symfony\Component\Form\Form {#5881 name: "" type_class: "Eccube\Form\Type\SearchProductBlockType" data: [ "name" => null ] } -propertyPath: "children[category_id]" -invalidValue: "1" -plural: null -code: "1dafa156-89e1-4736-b832-419c2e501fca" -constraint: Symfony\Component\Form\Extension\Validator\Constraints\Form {#5932 …} -cause: Symfony\Component\Form\Exception\TransformationFailedException {#5855 …} } |