This is my code:
$values = ['value1','value2','value3'];
$customer->setCustomAttribute('customer_attribute_code', $values);
//\Magento\Customer\Api\CustomerRepositoryInterface
$this->customerRepository->save($customer);
customer_attribute_code
is a custom customer multiselect attribute. I'm trying to save all values from my arrray ($values
), but it only save the first value: value1
Do you have any idea why ? I've also tried this format:
$values[0] = 'value1';
$values[1] = 'value2';
Thanks