cancel
Showing results for 
Search instead for 
Did you mean: 

customerRepositoryInterface->save does not save attribute “is_active”

customerRepositoryInterface->save does not save attribute “is_active”

I'm trying to update "is_active" attribute but nothing happens in the database. I don't get an error message either. What am I doing wrong?

public function changeStatus($statusData)
{    
$customer
= $this->customerRepositoryInterface->getById($statusData['id']);
$customer
->setData('is_active', 0); } try{ $this->customerRepositoryInterface->save($customer); } catch (\Exception $e ){ throw new \Exception($e->getMessage()); } }