Do you know why magento saves multiselect attribute type as varchar
and relative product assocations in catalog_product_entity_varchar
as array?
With array is not possible join between
catalog_product_entity_varchar
and eav_attribute_option_value
on value=option_id
when value
is varchar like 1,2,3
, because option_id
is int.
Isn't better considerer multiselect as multiple int and insert multiple record in catalog_product_entity_int
?
So is possible join correctly catalog_product_entity_int
and eav_attribute_option_value
on value=option_id