Hi zusammen,
ich scheitere gerade an den Translations
Würde mich über jeden Hinweis freuen.
Aktuell erhalte ich folgenden SQL Fehler:
(Ich bin auf der EA2 und habe bin/console dal:refresh:index ausgeführt)
An exception occurred while executing ‚INSERT INTO
cms_slot_translation
(cms_slot_id
,language_id
,cms_slot_version_id
,config
,created_at
) VALUES (?, ?, ?, ?, ?)‘ with params [„\x37\x55\x01\xde\x47\x6a\x4e\xce\x97\x86\xc2\x92\xb8\x4d\xaa\x0f“, „\xfc\x78\x54\x5c\x05\x4f\x43\x73\x92\x4c\xa5\x49\x66\xa7\xb8\x36“, „\x0f\xa9\x1c\xe3\xe9\x6a\x4b\xc2\xbe\x4b\xd9\xce\x75\x2c\x34\x25“, „{"content":{"value":"\n\t\tJETZT F\u00dcR EN-GB asdfasdf as fasdf asdf
asdfasdf
.\n\t","source":"static"}}“, „2019-10-25 19:09:35.528“]:SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
shopware_6
.cms_slot_translation
, CONSTRAINTfk.cms_slot_translation.language_id
FOREIGN KEY (language_id
) REFERENCESlanguage
(id
) ON DELETE CASCADE ON UPDATE CASCADE)
$entityUpdate = [
'id' => $slot->getId(),
'translations' => [
$language->getId() => [
'config' => $config
]
]
];
return $this->cmsSlotRepository->upsert(
[
$entityUpdate
],
Context::createDefaultContext()
);
Hier noch das $entityUpdate Arrray als dump:
Array
(
[id] => 375501de476a4ece9786c292b84daa0f
[translations] => Array
(
[fc78545c054f4373924ca54966a7b836] => Array
(
[config] => Array
(
[content] => Array
(
[value] =>
JETZT FÜR EN-GB asdfasdf as fasdf asdf asdfasdf.
[source] => static
)
)
)
)
)