src/Leevel/Database/Ddd/UnitOfWork.php
public function deleteAfter(IEntity $entity, int $priority = 500): IUnitOfWork
    {
        $this->deleteEntity($entity);

        $id = spl_object_id($entity);
        $this->deletesFlagAfter[$id] = $priority;

        return $this;
    }
public function deleteAfter(IEntity $entity, int $priority = 500): IUnitOfWork
    {
        $this->deleteEntity($entity);

        $id = spl_object_id($entity);
        $this->deletesFlagAfter[$id] = $priority;

        return $this;
    }
注册删除实体到后置区域.

@param \Leevel\Database\Ddd\IEntity $entity
@param int                          $priority

@return $this