From f2d5ddab4f3218a2cb2421193947b66d518192f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9?= Date: Mon, 14 Apr 2014 11:40:01 +0300 Subject: [PATCH] Update UniqueValidator.php --- framework/validators/UniqueValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/validators/UniqueValidator.php b/framework/validators/UniqueValidator.php index 46b52e897b..c760816dc6 100644 --- a/framework/validators/UniqueValidator.php +++ b/framework/validators/UniqueValidator.php @@ -23,9 +23,9 @@ use yii\db\ActiveRecordInterface; * ['a1', 'unique'] * // a1 needs to be unique, but column a2 will be used to check the uniqueness of the a1 value * ['a1', 'unique', 'targetAttribute' => 'a2'] - * // a1 and a2 need to unique together, and they both will receive error message + * // a1 and a2 need to be unique together, and they both will receive error message * [['a1', 'a2'], 'unique', 'targetAttribute' => ['a1', 'a2']] - * // a1 and a2 need to unique together, only a1 will receive error message + * // a1 and a2 need to be unique together, only a1 will receive error message * ['a1', 'unique', 'targetAttribute' => ['a1', 'a2']] * // a1 needs to be unique by checking the uniqueness of both a2 and a3 (using a1 value) * ['a1', 'unique', 'targetAttribute' => ['a2', 'a1' => 'a3']]