src/Leevel/Database/Ddd/UnitOfWork.php
public function created(IEntity $entity, int $priority = 500): bool
    {
        return isset($this->entityCreates[spl_object_id($entity)]);
    }
public function created(IEntity $entity, int $priority = 500): bool
    {
        return isset($this->entityCreates[spl_object_id($entity)]);
    }
实体是否已经注册新增.

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

@return bool