From 3ace2f0ae49a6eb14ced1391af22f2a2c0f31975 Mon Sep 17 00:00:00 2001 From: Bernhard Schmitt Date: Tue, 16 Apr 2024 22:53:04 +0200 Subject: [PATCH] 3587 - Delegate selection of relation distribution strategy to command handler for now --- Classes/Domain/Model/Changes/MoveAfter.php | 2 +- Classes/Domain/Model/Changes/MoveBefore.php | 2 +- Classes/Domain/Model/Changes/MoveInto.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Domain/Model/Changes/MoveAfter.php b/Classes/Domain/Model/Changes/MoveAfter.php index 8c22dd28f1..97a8a4ae92 100644 --- a/Classes/Domain/Model/Changes/MoveAfter.php +++ b/Classes/Domain/Model/Changes/MoveAfter.php @@ -91,7 +91,7 @@ public function apply(): void $workspace->workspaceName, $subject->subgraphIdentity->dimensionSpacePoint, $subject->nodeAggregateId, - RelationDistributionStrategy::STRATEGY_GATHER_ALL, + null, $hasEqualParentNode ? null : $parentNodeOfPreviousSibling->nodeAggregateId, $precedingSibling->nodeAggregateId, $succeedingSibling?->nodeAggregateId, diff --git a/Classes/Domain/Model/Changes/MoveBefore.php b/Classes/Domain/Model/Changes/MoveBefore.php index b032e78255..685772eec7 100644 --- a/Classes/Domain/Model/Changes/MoveBefore.php +++ b/Classes/Domain/Model/Changes/MoveBefore.php @@ -86,7 +86,7 @@ public function apply(): void $workspace->workspaceName, $subject->subgraphIdentity->dimensionSpacePoint, $subject->nodeAggregateId, - RelationDistributionStrategy::STRATEGY_GATHER_ALL, + null, $hasEqualParentNode ? null : $succeedingSiblingParent->nodeAggregateId, diff --git a/Classes/Domain/Model/Changes/MoveInto.php b/Classes/Domain/Model/Changes/MoveInto.php index a6f8eb21f8..3cd5a7a7a6 100644 --- a/Classes/Domain/Model/Changes/MoveInto.php +++ b/Classes/Domain/Model/Changes/MoveInto.php @@ -96,7 +96,7 @@ public function apply(): void $workspace->workspaceName, $subject->subgraphIdentity->dimensionSpacePoint, $subject->nodeAggregateId, - RelationDistributionStrategy::STRATEGY_GATHER_ALL, + null, $hasEqualParentNode ? null : $parentNode->nodeAggregateId, ) )->block();