diff --git a/Classes/Domain/Model/Changes/Property.php b/Classes/Domain/Model/Changes/Property.php index 766754d0af..06cd3e5814 100644 --- a/Classes/Domain/Model/Changes/Property.php +++ b/Classes/Domain/Model/Changes/Property.php @@ -240,8 +240,8 @@ private function handleNodeReferenceChange(Node $subject, string $propertyName): $subject->workspaceName, $subject->aggregateId, $subject->originDimensionSpacePoint, - NodeReferencesToWrite::fromReferences( - NodeReferencesForName::fromNameAndTargets( + NodeReferencesToWrite::create( + NodeReferencesForName::fromTargets( ReferenceName::fromString($propertyName), NodeAggregateIds::fromArray($destinationNodeAggregateIds) ) diff --git a/Classes/Infrastructure/ContentRepository/CreationDialog/PromotedElementsCreationHandlerFactory.php b/Classes/Infrastructure/ContentRepository/CreationDialog/PromotedElementsCreationHandlerFactory.php index ba06077aa5..eea2b8355e 100644 --- a/Classes/Infrastructure/ContentRepository/CreationDialog/PromotedElementsCreationHandlerFactory.php +++ b/Classes/Infrastructure/ContentRepository/CreationDialog/PromotedElementsCreationHandlerFactory.php @@ -57,7 +57,7 @@ public function handle(NodeCreationCommands $commands, NodeCreationElements $ele $referenceConfiguration = $nodeType->getReferences()[$elementName]; if (($referenceConfiguration['ui']['showInCreationDialog'] ?? false) === true) { $initialReferences = $initialReferences->withReference( - NodeReferencesForName::fromNameAndTargets( + NodeReferencesForName::fromTargets( ReferenceName::fromString($elementName), $elementValue )