public function restore()
    {
        /** @var ActiveRecord $this */
        if (((boolean) $this->{$this->isDeletedAttribute}) !== false) {
            $this->{$this->isDeletedAttribute} = false;
            return $this->save(true, [$this->isDeletedAttribute]);
        }
        return true;
    }