Browse Source

Fixed merge bug

tags/3.0.0-alpha1
Alexander Makarov 8 years ago
parent
commit
9eabc170ad
No known key found for this signature in database
GPG Key ID: 3617B79C6A325E4A
  1. 1
      framework/validators/UniqueValidator.php

1
framework/validators/UniqueValidator.php

@ -118,6 +118,7 @@ class UniqueValidator extends Validator
{
/* @var $targetClass ActiveRecordInterface */
$targetClass = $this->targetClass ?: get_class($model);
$targetClass = ltrim($targetClass, '\\');
$targetAttribute = $this->targetAttribute ?: $attribute;
$conditions = $this->prepareConditions($targetAttribute, $model, $attribute);

Loading…
Cancel
Save