release version 2.0.11

This commit is contained in:
Carsten Brandt
2017-02-01 17:46:29 +01:00
parent bd59d8f527
commit c19b2f7dc8
45 changed files with 80 additions and 69 deletions

View File

@ -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
*/

View File

@ -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)