From 9eabc170ad04d2b249b28b41213958e343a13bb8 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Wed, 11 Jan 2017 00:08:34 +0300 Subject: [PATCH] Fixed merge bug --- framework/validators/UniqueValidator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/validators/UniqueValidator.php b/framework/validators/UniqueValidator.php index f229844..8cba900 100644 --- a/framework/validators/UniqueValidator.php +++ b/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);