diff --git a/src/Symfony/Component/Validator/Constraints/AtLeastOneOf.php b/src/Symfony/Component/Validator/Constraints/AtLeastOneOf.php
index b7efac17b8..ca726ae369 100644
--- a/src/Symfony/Component/Validator/Constraints/AtLeastOneOf.php
+++ b/src/Symfony/Component/Validator/Constraints/AtLeastOneOf.php
@@ -19,10 +19,10 @@ namespace Symfony\Component\Validator\Constraints;
*/
class AtLeastOneOf extends Composite
{
- public const AT_LEAST_ONE_ERROR = 'f27e6d6c-261a-4056-b391-6673a623531c';
+ public const AT_LEAST_ONE_OF_ERROR = 'f27e6d6c-261a-4056-b391-6673a623531c';
protected static $errorNames = [
- self::AT_LEAST_ONE_ERROR => 'AT_LEAST_ONE_ERROR',
+ self::AT_LEAST_ONE_OF_ERROR => 'AT_LEAST_ONE_OF_ERROR',
];
public $constraints = [];
diff --git a/src/Symfony/Component/Validator/Constraints/AtLeastOneOfValidator.php b/src/Symfony/Component/Validator/Constraints/AtLeastOneOfValidator.php
index 9085b89edb..acdd31117a 100644
--- a/src/Symfony/Component/Validator/Constraints/AtLeastOneOfValidator.php
+++ b/src/Symfony/Component/Validator/Constraints/AtLeastOneOfValidator.php
@@ -54,7 +54,7 @@ class AtLeastOneOfValidator extends ConstraintValidator
}
$this->context->buildViolation(implode('', $messages))
- ->setCode(AtLeastOneOf::AT_LEAST_ONE_ERROR)
+ ->setCode(AtLeastOneOf::AT_LEAST_ONE_OF_ERROR)
->addViolation()
;
}
diff --git a/src/Symfony/Component/Validator/Resources/translations/validators.en.xlf b/src/Symfony/Component/Validator/Resources/translations/validators.en.xlf
index 8f8d2d0a0f..674ccf5c30 100644
--- a/src/Symfony/Component/Validator/Resources/translations/validators.en.xlf
+++ b/src/Symfony/Component/Validator/Resources/translations/validators.en.xlf
@@ -374,6 +374,14 @@
The number of elements in this collection should be a multiple of {{ compared_value }}.The number of elements in this collection should be a multiple of {{ compared_value }}.
+
+ This value should satisfy at least one of the following constraints:
+ This value should satisfy at least one of the following constraints:
+
+
+ Each element of this collection should satisfy its own set of constraints.
+ Each element of this collection should satisfy its own set of constraints.
+