diff --git a/framework/validators/EachValidator.php b/framework/validators/EachValidator.php index d264a01a42..69a66c5a29 100644 --- a/framework/validators/EachValidator.php +++ b/framework/validators/EachValidator.php @@ -30,7 +30,9 @@ use yii\base\Model; * } * ~~~ * - * Note: this validator will not work with validation declared via model inline method. + * Note: this validator will not work with validation declared via model inline method. If you declare inline + * validation rule for attribute, you should avoid usage of this validator and iterate over array attribute + * values manually inside your code. * * @property Validator $validator related validator instance. This property is read only. *