Validator calls
In
ValidationListener.php
line 46 (context):
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 {#1124 name: "" type_class: "Ttskch\PaginatorBundle\Form\CriteriaType" data: Ttskch\PaginatorBundle\Entity\Criteria {#902 +page: 1 +limit: 10 +sort: "publishedAt" +direction: "desc" } } "constraints" => null "groups" => null ]
| Path | Message | Invalid value | Violation |
|---|---|---|---|
| This form should not contain extra fields. | [ "pole" => "Isaac" ] |
Symfony\Component\Validator\ConstraintViolation {#1346 -message: "This form should not contain extra fields." -messageTemplate: "This form should not contain extra fields." -parameters: [ "{{ extra_fields }}" => ""pole"" ] -plural: 1 -root: Symfony\Component\Form\Form {#1124 name: "" type_class: "Ttskch\PaginatorBundle\Form\CriteriaType" data: Ttskch\PaginatorBundle\Entity\Criteria {#902 +page: 1 +limit: 10 +sort: "publishedAt" +direction: "desc" } } -propertyPath: "" -invalidValue: [ "pole" => "Isaac" ] -constraint: Symfony\Component\Form\Extension\Validator\Constraints\Form {#1166 …} -code: "6e5212ed-a197-4339-99aa-5654798a4854" -cause: null } |