Skip to content

Magento 2 saving wrong data to the Database

I have a custom table for company with a column : sales_representative_id

// print_r($company->getSalesRepresentativeId());exit;
 $this->sellerCompanyService->createCompany($company, $customer);

here the print_r returns the correct value which is passing via the form submit. But after save, in DB the stored value is 20. What ever we passed, the value is become 20.

There is no default value set, and the issue is for only this col.