src/behaviors/UUIDBehavior.php
protected function validateUUID($uuid)
    {
        /* @var $validator UniqueValidator */
        /* @var $model BaseActiveRecord */
        $validator = Yii::createObject(array_merge([
            'class' => UniqueValidator::class,
        ], $this->uniqueValidator));

        $model = clone $this->owner;
        $model->clearErrors();
        $model->{$this->attribute} = $uuid;

        $validator->validateAttribute($model, $this->attribute);
        return !$model->hasErrors();
    }
protected function validateUUID($uuid)
    {
        /* @var $validator UniqueValidator */
        /* @var $model BaseActiveRecord */
        $validator = Yii::createObject(array_merge([
            'class' => UniqueValidator::class,
        ], $this->uniqueValidator));

        $model = clone $this->owner;
        $model->clearErrors();
        $model->{$this->attribute} = $uuid;

        $validator->validateAttribute($model, $this->attribute);
        return !$model->hasErrors();
    }
protected function validateUUID ( $ uuid ) { /* @var $validator UniqueValidator */ /* @var $model BaseActiveRecord */ $ validator = Yii :: createObject ( array_merge ( [ 'class' => UniqueValidator :: class , ] , $ this -> uniqueValidator ) ) ; $ model = clone $ this -> owner ; $ model -> clearErrors ( ) ; $ model -> { $ this -> attribute } = $ uuid ; $ validator -> validateAttribute ( $ model , $ this -> attribute ) ; return ! $ model -> hasErrors ( ) ; }
Checks if given uuid value is unique.
@param string $uuid slug value
@return bool whether slug is unique.
@throws InvalidConfigException
Checks if given uuid value is unique .