validators\UniqueValidator $targetAttribute

$targetAttribute public property

The name of the ActiveRecord attribute that should be used to validate the uniqueness of the current attribute value. If not set, it will use the name of the attribute currently being validated. You may use an array to validate the uniqueness of multiple columns at the same time. The array values are the attributes that will be used to validate the uniqueness, while the array keys are the attributes whose values are to be validated. If the key and the value are the same, you can just specify the value.

doc_Yii
2016-10-30 17:14:10
Comments
Leave a Comment

Please login to continue.