$payload =
['id' => Uuid::
fromHexToBytes($key),
$field => null
];
$primary = EntityHydrator::
encodePrimaryKey($affectedDefinition,
['id' =>
$key],
$writeContext->
getContext());
$existence =
new EntityExistence($affectedDefinition->
getEntityName(),
$primary, true, false, false,
[]);
if ($definition->
isVersionAware()) { $versionField =
str_replace('_id', '_version_id',
$field);
$payload[$versionField] = null;
} $queue->
add($affectedDefinition,
new SetNullOnDeleteCommand($affectedDefinition,
$payload,
$primary,
$existence, '',
$flag->
isEnforcedByConstraint()));
} } } /**
* @param array<mixed> $ids
*
* @return array<mixed>
*/
private function resolvePrimaryKeys(array
$ids, EntityDefinition
$definition, WriteContext
$writeContext): array
{