src/Leevel/Database/Ddd/Select.php
public function softRestore(): int
    {
        $this->entity->handleEvent(IEntity::BEFORE_SOFT_RESTORE_EVENT);

        $this->entity->__set($this->deleteAtColumn(), null);

        $num = $this->entity->update()->flush();

        $this->entity->handleEvent(IEntity::AFTER_SOFT_RESTORE_EVENT);

        return $num;
    }
public function softRestore(): int
    {
        $this->entity->handleEvent(IEntity::BEFORE_SOFT_RESTORE_EVENT);

        $this->entity->__set($this->deleteAtColumn(), null);

        $num = $this->entity->update()->flush();

        $this->entity->handleEvent(IEntity::AFTER_SOFT_RESTORE_EVENT);

        return $num;
    }
恢复软删除的模型实体.

@return int