protected function loadAttributes()
{
if (null === $this->_attributesValues) {
$this->_attributesValues = [];
foreach ($this->attributesValues as $attribute) {
//собираем массив multiple values attributes
if ($attribute->attribute->isMultipleValues()) {
$this->_attributesValues[$attribute->attribute->name][] = $attribute;
} else {
$this->_attributesValues[$attribute->attribute->name] = $attribute;
}
}
}
}