foreach ($options as $option) { $combinable =
$this->
isCombinable($option,
$current,
$combinations);
if ($combinable === null
) { $options->
remove($option->
getId());
continue;
} $option->
setGroup(null
);
$option->
setCombinable($combinable);
} } return $groups;
} /**
* @throws InconsistentCriteriaIdsException
*
* @return array<string, PropertyGroupEntity>|null
*/