Commit fa854477 by Qiang Xue

Fixes #1900.

parent 15dbf131
...@@ -107,10 +107,10 @@ class ExistValidator extends Validator ...@@ -107,10 +107,10 @@ class ExistValidator extends Validator
return [$this->message, []]; return [$this->message, []];
} }
if ($this->targetClass === null) { if ($this->targetClass === null) {
throw new InvalidConfigException('The "className" property must be set.'); throw new InvalidConfigException('The "targetClass" property must be set.');
} }
if (!is_string($this->targetAttribute)) { if (!is_string($this->targetAttribute)) {
throw new InvalidConfigException('The "attributeName" property must be configured as a string.'); throw new InvalidConfigException('The "targetAttribute" property must be configured as a string.');
} }
/** @var \yii\db\ActiveRecordInterface $targetClass */ /** @var \yii\db\ActiveRecordInterface $targetClass */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment