mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
Merge pull request #3085 from plusodinminus/patch-2
small typos changes
This commit is contained in:
@@ -23,9 +23,9 @@ use yii\db\ActiveRecordInterface;
|
|||||||
* ['a1', 'unique']
|
* ['a1', 'unique']
|
||||||
* // a1 needs to be unique, but column a2 will be used to check the uniqueness of the a1 value
|
* // a1 needs to be unique, but column a2 will be used to check the uniqueness of the a1 value
|
||||||
* ['a1', 'unique', 'targetAttribute' => 'a2']
|
* ['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', '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', 'unique', 'targetAttribute' => ['a1', 'a2']]
|
||||||
* // a1 needs to be unique by checking the uniqueness of both a2 and a3 (using a1 value)
|
* // a1 needs to be unique by checking the uniqueness of both a2 and a3 (using a1 value)
|
||||||
* ['a1', 'unique', 'targetAttribute' => ['a2', 'a1' => 'a3']]
|
* ['a1', 'unique', 'targetAttribute' => ['a2', 'a1' => 'a3']]
|
||||||
|
|||||||
Reference in New Issue
Block a user