getSavedConditions example


    }

    /** * @param array<UpdateCommand> $commandQueue */
    private function validateUpdateCommands(
        array $commandQueue,
        WriteException $writeException,
        Context $context
    ): void {
        $conditions = $this->getSavedConditions($commandQueue$context);

        foreach ($commandQueue as $command) {
            $id = Uuid::fromBytesToHex($command->getPrimaryKey()['id']);
            $condition = $conditions->get($id);

            $this->validateCondition($condition$command$writeException$context);
        }
    }

    /** * @param array<UpdateCommand> $commandQueue */
Home | Imprint | This part of the site doesn't use cookies.