Parcourir la source

error al usar UniqueEntity

root il y a 11 ans
Parent
commit
8c1e46c8eb

+ 2 - 0
src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php

@@ -85,6 +85,8 @@ class DelegatingValidator implements FormValidatorInterface
                     $propertyPath = $violation->getPropertyPath();
                     $template = $violation->getMessageTemplate();
                     $parameters = $violation->getMessageParameters();
+
+		if(empty($template)) continue;
                     $error = new FormError($template, $parameters);
 
                     foreach ($mapping as $mappedPath => $child) {