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 {#12535 name: "" type_class: "App\Product\Infrastructure\Form\Search\ArtworkProductSearchType" data: [ "artWorkType" => Doctrine\Common\Collections\ArrayCollection {#12533 -elements: [] } "location" => null "minPrice" => null "maxPrice" => null "techniques" => Doctrine\Common\Collections\ArrayCollection {#13329 -elements: [] } "colors" => Doctrine\Common\Collections\ArrayCollection {#13386 -elements: [] } "orientationType" => [] ] } "constraints" => null "groups" => null ]
| Path | Message | Invalid value | Violation |
|---|---|---|---|
| Ce formulaire ne doit pas contenir de champs supplémentaires. | [ "page" => "1" ] |
Symfony\Component\Validator\ConstraintViolation {#13695 -message: "Ce formulaire ne doit pas contenir de champs supplémentaires." -messageTemplate: "This form should not contain extra fields." -parameters: [ "{{ extra_fields }}" => ""page"" ] -root: Symfony\Component\Form\Form {#12535 name: "" type_class: "App\Product\Infrastructure\Form\Search\ArtworkProductSearchType" data: [ "artWorkType" => Doctrine\Common\Collections\ArrayCollection {#12533 -elements: [] } "location" => null "minPrice" => null "maxPrice" => null "techniques" => Doctrine\Common\Collections\ArrayCollection {#13329 -elements: [] } "colors" => Doctrine\Common\Collections\ArrayCollection {#13386 -elements: [] } "orientationType" => [] ] } -propertyPath: "" -invalidValue: [ "page" => "1" ] -plural: 1 -code: "6e5212ed-a197-4339-99aa-5654798a4854" -constraint: Symfony\Component\Form\Extension\Validator\Constraints\Form {#13636 …} -cause: null } |