Validator calls
In
ValidationListener.php
line ():
No violations
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 {#14683 name: "holiday_request_edit" type_class: "App\Form\EmployeeHolidayRequestType" data: App\Entity\EmployeeHolidayRequest {#14547 -id: ? ?string -status: ? ?string -motivation: "" -response: ? ?string -datetimeStart: ? ?DateTimeInterface -datetimeEnd: ? ?DateTimeInterface -datetimeSend: ? ?DateTimeInterface -datetimeSupervisor: ? ?DateTimeInterface -employee: null } } "constraints" => null "groups" => null ]
In
ValidationService.php
line ():
[ "value" => "" "constraints" => Symfony\Component\Validator\Constraints\NotBlank {#14715 +payload: null +groups: [ "Default" ] +message: "This value should not be blank." +allowNull: false +normalizer: null } "groups" => null ]
Path | Message | Invalid value | Violation |
---|---|---|---|
Questo valore non dovrebbe essere vuoto. | "" |
Symfony\Component\Validator\ConstraintViolation {#15183 -message: "Questo valore non dovrebbe essere vuoto." -messageTemplate: "This value should not be blank." -parameters: [ "{{ value }}" => """" ] -plural: null -root: "" -propertyPath: "" -invalidValue: "" -constraint: Symfony\Component\Validator\Constraints\NotBlank {#14715 +payload: null +groups: [ "Default" ] +message: "This value should not be blank." +allowNull: false +normalizer: null } -code: "c1051bb4-d103-4f74-8988-acbcafc7fdc3" -cause: null } |