public function hydrateGroup(array
$data) { $group =
new Group();
$translation =
$this->
getTranslation($data, '__propertyGroup',
['optionName' => 'name'
]);
$data =
array_merge($data,
$translation);
$group->
setId((int) $data['__propertyGroup_id'
]);
$group->
setName($data['__propertyGroup_name'
]);
$group->
setFilterable((bool) $data['__propertyGroup_filterable'
]);
if ($data['__propertyGroupAttribute_id'
]) { $this->attributeHydrator->
addAttribute($group,
$data, 'propertyGroupAttribute', null, 'propertyGroup'
);
} return $group;
} /**
* @param array<string, mixed> $data
*
* @return Option
*/