System / OS
Light
Dark
Fixed width
Fit to window
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();
0 of 0 [▼ "value" => Symfony\Component\Form\Form {#717 ▶ name: "registration_form" type_class: "App\Form\RegistrationFormType" data: App\Entity\UserEntity {#468 ▶ -id: null -username: "Romie Brizuela Barros" -email: "darcy@insight.rr.com" -active: false -md5User: null -roles: [] -password: null -messages: Doctrine\Common\Collections\ArrayCollection {#528 …} } } "constraints" => null "groups" => null ]
0 of 0 App\Entity\UserEntity {#468 ▼ -id: null -username: "Romie Brizuela Barros" -email: "darcy@insight.rr.com" -active: false -md5User: null -roles: [] -password: null -messages: Doctrine\Common\Collections\ArrayCollection {#528 …} }
0 of 0 Symfony\Component\Validator\ConstraintViolation {#1069 ▼ -message: "email_exists" -messageTemplate: "email_exists" -parameters: [] -plural: null -root: Symfony\Component\Form\Form {#717 ▶ name: "registration_form" type_class: "App\Form\RegistrationFormType" data: App\Entity\UserEntity {#468 ▶ -id: null -username: "Romie Brizuela Barros" -email: "darcy@insight.rr.com" -active: false -md5User: null -roles: [] -password: null -messages: Doctrine\Common\Collections\ArrayCollection {#528 …} } } -propertyPath: "data.email" -invalidValue: App\Entity\UserEntity {#468 ▶} -constraint: Symfony\Component\Validator\Constraints\Callback {#667 …} -code: null -cause: null }