public function delete($id)
 {
     $this->db->trans_start();
     # delete company related by size
     $this->load->model("CompanyModel");
     $company = new CompanyModel();
     $company->delete_by_size($id);
     # remove the size itself
     $condition = array(CompanySizeModel::$primary_key => $id);
     $this->db->delete(CompanySizeModel::$table_name, $condition);
     $this->db->trans_complete();
     return $this->db->trans_status();
 }