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);
    } catch (\Exception $e ){
        throw new \Exception($e->getMessage());  
  • Does anyone have an idea ? – Jens Jan 25 '18 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.