From 21318b28d4cd2ba930b903b0f7c6576849bf7bd4 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sat, 7 Dec 2024 17:10:39 +0100 Subject: [PATCH] TASK: Explain behaviour when handling multiple commands --- .../Classes/CommandHandler/Commands.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Neos.ContentRepository.Core/Classes/CommandHandler/Commands.php b/Neos.ContentRepository.Core/Classes/CommandHandler/Commands.php index c76eb1955e..85cee65f83 100644 --- a/Neos.ContentRepository.Core/Classes/CommandHandler/Commands.php +++ b/Neos.ContentRepository.Core/Classes/CommandHandler/Commands.php @@ -4,6 +4,8 @@ namespace Neos\ContentRepository\Core\CommandHandler; +use Neos\ContentRepository\Core\Subscription\Exception\CatchUpHadErrors; + /** * @api can be used as collection of commands to be individually handled: * @@ -11,6 +13,9 @@ * $contentRepository->handle($command); * } * + * Note that as they are separate commands, they might individually fail due to constraints + * or a projection or catchup failing during the first catchup with {@see CatchUpHadErrors} + * * @implements \IteratorAggregate */ final readonly class Commands implements \IteratorAggregate, \Countable