EntityExistence
$existence,
KeyValuePair
$data,
WriteParameterBag
$parameters ): \Generator
{ if (!
$field instanceof PriceField
) { throw DataAbstractionLayerException::
invalidSerializerField(PriceField::
class,
$field);
} $value =
$data->
getValue();
/** @var JsonField $field */
if ($this->
requiresValidation($field,
$existence,
$value,
$parameters)) { if ($value !== null
) { foreach ($value as &
$row) { unset($row['extensions'
]);
} } $data->
setValue($value);
if ($field->
is(Required::
class)) { $this->
validate([new NotBlank()],
$data,
$parameters->
getPath());
}