src/Leevel/Database/Ddd/UnitOfWork.php
public function registerManaged(IEntity $entity): void
    {
        $this->entityStates[spl_object_id($entity)] = self::STATE_MANAGED;
    }
public function registerManaged(IEntity $entity): void
    {
        $this->entityStates[spl_object_id($entity)] = self::STATE_MANAGED;
    }
注册实体为管理状态.

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