src/Leevel/Database/Ddd/UnitOfWork.php
public function persistBefore(IEntity $entity, string $method = 'save'): IUnitOfWork
    {
        return $this->persistEntity('Before', $entity, $method);
    }
public function persistBefore(IEntity $entity, string $method = 'save'): IUnitOfWork
    {
        return $this->persistEntity('Before', $entity, $method);
    }
保持实体到前置区域.

@param \Leevel\Database\Ddd\IEntity $entity
@param string                       $method

@return $this