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 {#10093 name: "bitbag_elasticsearch_search" type_class: "BitBag\SyliusElasticsearchPlugin\Form\Type\SearchType" data: BitBag\SyliusElasticsearchPlugin\Model\Search {#10410 -query: null -facets: [] } } "constraints" => null "groups" => null ]
| Path | Message | Invalid value | Violation |
|---|---|---|---|
| children[facets] | Formuläret kan inte innehålla extra fält. | [ "product_type" => [ "holds" ] ] |
Symfony\Component\Validator\ConstraintViolation {#10670 -message: "Formuläret kan inte innehålla extra fält." -messageTemplate: "This form should not contain extra fields." -parameters: [ "{{ extra_fields }}" => ""product_type"" ] -root: Symfony\Component\Form\Form {#10093 name: "bitbag_elasticsearch_search" type_class: "BitBag\SyliusElasticsearchPlugin\Form\Type\SearchType" data: BitBag\SyliusElasticsearchPlugin\Model\Search {#10410 -query: null -facets: [] } } -propertyPath: "children[facets]" -invalidValue: [ "product_type" => [ "holds" ] ] -plural: 1 -code: "6e5212ed-a197-4339-99aa-5654798a4854" -constraint: Symfony\Component\Form\Extension\Validator\Constraints\Form {#10672 …} -cause: null } |