NodeAggregateIdMapping
final class NodeAggregateIdMapping implements JsonSerializable (View source)
internal | implementation detail of {@see \Neos\ContentRepository\Core\Feature\NodeDuplication\Dto\CopyNodesRecursively} command |
An assignment of "old" to "new" NodeAggregateIds
Usable for predefining NodeAggregateIds if multiple nodes are copied.
You'll never create this class yourself; but you use {\Neos\ContentRepository\Core\Feature\NodeDuplication\Dto\CopyNodesRecursively::createFromSubgraphAndStartNode()}
Properties
protected NodeAggregateId> | $nodeAggregateIds | new Node aggregate ids, indexed by old node aggregate id |
Methods
__construct(array $nodeAggregateIds)
No description
static NodeAggregateIdMapping
generateForNodeSubtreeSnapshot(NodeSubtreeSnapshot $nodeSubtreeSnapshot)
Create a new id mapping, GENERATING new ids.
static NodeAggregateIdMapping
fromArray(array $array)
No description
NodeAggregateId|null
array
jsonSerialize()
No description
array
getAllNewNodeAggregateIds()
No description
Details
__construct(array $nodeAggregateIds)
No description
static NodeAggregateIdMapping
generateForNodeSubtreeSnapshot(NodeSubtreeSnapshot $nodeSubtreeSnapshot)
Create a new id mapping, GENERATING new ids.
static NodeAggregateIdMapping
fromArray(array $array)
No description
NodeAggregateId|null
getNewNodeAggregateId(NodeAggregateId $oldNodeAggregateId)
No description
array
jsonSerialize()
No description
array
getAllNewNodeAggregateIds()
No description