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 {#1062 name: "product" type_class: "App\Form\ProductType" data: App\Entity\Product {#698 -id: 25 -name: "Avocat" -productType: App\Entity\ProductType {#1140 …} -unit: App\Enum\UnitType {#1000 …} -recipeProducts: Doctrine\ORM\PersistentCollection {#1110 …} -extras: Doctrine\ORM\PersistentCollection {#1122 …} -shoppingListExtras: Doctrine\ORM\PersistentCollection {#1188 …} } } "constraints" => null "groups" => null ]