浏览代码

error al usar UniqueEntity

root 11 年之前
父节点
当前提交
8c1e46c8eb
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/Symfony/Component/Form/Extension/Validator/Validator/DelegatingValidator.php

+ 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) {