I have an entry with a Matrix field, inside this field I have a Super Table as block type. My fields data looks like below:
"title" => "test1"
"matrixHandle" => array:2 [
0 => array:2 [
"type" => "sponsorshipRow"
"fields" => array:2 [
"sectionTitle" => "blablabla"
"superTableHandle" => array:5 [
0 => array:3 [
"fields" => array:10 [
"relatedArticle" => 325051
...
]
]
1 => [...]
1 => [...]
Then I loop these fields
foreach ($fields as $key => $value) {
$entry->setFieldValue($key, $value);
}
And last, I save the entry:
Craft::$app->elements->saveElement($entry);
But every data is saved except for the super table block. The super table block is not even created. Any idea please?