src/Leevel/Database/Ddd/Select.php
public function softDelete(): int
    {
        $this->entity->__set($this->deleteAtColumn(), $time = date('Y-m-d H:i:s'));

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

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

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

        return $num;
    }
public function softDelete(): int
    {
        $this->entity->__set($this->deleteAtColumn(), $time = date('Y-m-d H:i:s'));

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

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

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

        return $num;
    }
从模型实体中软删除数据.

@return int