src/Validators/ExistValidator.php
public function validateAttribute($model, $attribute)
    {
        if (!empty($this->targetRelation)) {
            return $this->checkTargetRelationExistence($model, $attribute);
        } else {
            return $this->checkTargetAttributeExistence($model, $attribute);
        }
    }
public function validateAttribute($model, $attribute)
    {
        if (!empty($this->targetRelation)) {
            return $this->checkTargetRelationExistence($model, $attribute);
        } else {
            return $this->checkTargetAttributeExistence($model, $attribute);
        }
    }
{@inheritdoc}