From 69cb09dbf34642e4069f8e69054d3667f84586ee Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Sun, 22 Dec 2013 22:49:44 -0500 Subject: [PATCH] doc fix. --- framework/yii/validators/ExistValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/validators/ExistValidator.php b/framework/yii/validators/ExistValidator.php index 323172a..7e783a8 100644 --- a/framework/yii/validators/ExistValidator.php +++ b/framework/yii/validators/ExistValidator.php @@ -30,8 +30,8 @@ use yii\base\InvalidConfigException; * ['a1, a2', 'exist', 'targetAttribute' => ['a1', 'a2']] * // a1 and a2 need to exist together, only a1 will receive error message * ['a1', 'exist', 'targetAttribute' => ['a1', 'a2']] - * // a1 needs to be unique by checking the existence of both a2 and a3 (using a1 value) - * ['a1', 'unique', 'targetAttribute' => ['a2', 'a1' => 'a3']] + * // a1 needs to exist by checking the existence of both a2 and a3 (using a1 value) + * ['a1', 'exist', 'targetAttribute' => ['a2', 'a1' => 'a3']] * ``` * * @author Qiang Xue