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 {#1162 name: "employee_role_form" type_class: "App\Form\EmployeeRoleForm" data: App\Entity\EmployeeRole {#890 -id: 21 -business: App\Entity\Business {#789 …} -name: "Operations Manager" -code: "OPSM" -active: true -permissions: [ "business.view" "employees.view" "leave.view" "teams.view" "teams.manage" "tasks.view" "tasks.manage" "shifts.view" "shifts.manage" "roster.view" "roster.manage" "attendance.view" "attendance.manage" "sms.view" "sms.send" "sms.retry" "sms.templates.manage" "sms.settings.manage" "reports.view" ] } } "constraints" => null "groups" => null ]