$set->
setName($data['__configuratorSet_name'
]);
$set->
setType((int) $data['__configuratorSet_type'
]);
return $set;
} /**
* @param array<string, mixed> $data
*/
private function createGroup(array
$data): Group
{ $group =
new Group();
$translation =
$this->
getTranslation($data, '__configuratorGroup'
);
$data =
array_merge($data,
$translation);
$group->
setId((int) $data['__configuratorGroup_id'
]);
$group->
setName($data['__configuratorGroup_name'
]);
$group->
setDescription($data['__configuratorGroup_description'
]);
if ($data['__configuratorGroupAttribute_id'
]) { $this->attributeHydrator->
addAttribute($group,
$data, 'configuratorGroupAttribute', null, 'configuratorGroup'
);
}