PropertyValuesToWrite
final class PropertyValuesToWrite (View source)
Property values to write, supports arbitrary objects. Will be then converted to {SerializedPropertyValues} inside the events and persisted commands.
This object does not store the types of the values separately, while in {\Neos\ContentRepository\Core\Feature\NodeModification\Dto\SerializedPropertyValues}, the types are stored in the data structure. We expect the value types to match the NodeType's property types (this is validated in the command handler).
A null value will cause to unset a nodes' property.
Methods
No description
No description
No description
Adds a property value to write.
No description
No description
No description
Details
static PropertyValuesToWrite
createEmpty()
No description
static PropertyValuesToWrite
fromArray(array $values)
No description
static PropertyValuesToWrite
fromJsonString(string $jsonString)
No description
PropertyValuesToWrite
withValue(string $valueName, mixed $value)
Adds a property value to write.
To declare to unset a property, null is used:
$propertyValues->withValue('my-property', null);
PropertyValuesToWrite
merge(PropertyValuesToWrite $other)
No description
PropertyValuesToWrite
withoutUnsets()
| internal | you should not need this in user-land |
No description
PropertyNames
getPropertiesToUnset()
| internal | you should not need this in user-land |
No description
bool
isEmpty()
No description