mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 13:58:55 +08:00
release version 2.0.11
This commit is contained in:
@ -64,13 +64,13 @@ class ExistValidator extends Validator
|
||||
* @var bool whether to allow array type attribute.
|
||||
*/
|
||||
public $allowArray = false;
|
||||
|
||||
/**
|
||||
* @var string and|or define how target attributes are related
|
||||
* @since 2.0.11
|
||||
*/
|
||||
public $targetAttributeJunction = 'and';
|
||||
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
|
||||
@ -83,13 +83,13 @@ class UniqueValidator extends Validator
|
||||
* to setup custom message for multiple target attributes.
|
||||
*/
|
||||
public $comboNotUnique;
|
||||
|
||||
/**
|
||||
* @var string and|or define how target attributes are related
|
||||
* @since 2.0.11
|
||||
*/
|
||||
public $targetAttributeJunction = 'and';
|
||||
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
@ -218,7 +218,7 @@ class UniqueValidator extends Validator
|
||||
* If the key and the value are the same, you can just specify the value.
|
||||
* @param Model $model the data model to be validated
|
||||
* @param string $attribute the name of the attribute to be validated in the $model
|
||||
|
||||
*
|
||||
* @return array conditions, compatible with [[\yii\db\Query::where()|Query::where()]] key-value format.
|
||||
*/
|
||||
private function prepareConditions($targetAttribute, $model, $attribute)
|
||||
|
||||
Reference in New Issue
Block a user