$this->attributeHydrator->
addAttribute($group,
$data, 'configuratorGroupAttribute', null, 'configuratorGroup'
);
} return $group;
} /**
* @param array<string, mixed> $data
*/
private function createOption(array
$data): Option
{ $option =
new Option();
$translation =
$this->
getTranslation($data, '__configuratorOption'
);
$data =
array_merge($data,
$translation);
$option->
setId((int) $data['__configuratorOption_id'
]);
$option->
setName($data['__configuratorOption_name'
]);
if ($data['__configuratorOptionAttribute_id'
]) { $this->attributeHydrator->
addAttribute($option,
$data, 'configuratorOptionAttribute', null, 'configuratorOption'
);
} if (isset($data['__media_id'
])) {