'state_machine_id' => Uuid::
fromHexToBytes($machineId),
'from_state_id' => Uuid::
fromHexToBytes($from),
'to_state_id' => Uuid::
fromHexToBytes($to),
'created_at'
=> (new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
),
] );
} private function insertTranslations(string
$stateId, Connection
$connection): void
{ $languages =
[Defaults::LANGUAGE_SYSTEM => 'Unconfirmed'
];
if (($enGbId =
$this->
getLanguageId('en-GB',
$connection)) !== null
) { $languages[$enGbId] = 'Unconfirmed';
} if (($deDeId =
$this->
getLanguageId('de-DE',
$connection)) !== null
) { $languages[$deDeId] = 'UnbestÃĪtigt';
} foreach ($languages as $languageId =>
$name) { $connection->
executeStatement( 'REPLACE INTO state_machine_state_translation
(`language_id`, `state_machine_state_id`, `name`, `created_at`)
VALUES
(:language_id, :state_machine_state_id, :name, :created_at)',