protected function createNewAffiliate(array $headerArray, array $row) { $affiliate = new Pap_Affiliates_User(); $affiliate->setSendNotification(false); $this->setDbRowData($affiliate, $row, $headerArray, $this->getPapUserColumnsWithoutParentUserId()); $this->setDbRowData($affiliate, $row, $headerArray, $this->getGpfUserColumns()); $this->setDbRowData($affiliate, $row, $headerArray, $this->getAuthUserColumns()); if($affiliate->getDeleted() == "") { $affiliate->setDeleted(false); } try { $affiliate->save(); $this->logger->debug('New affiliate was created'); } catch (Gpf_Exception $e) { $this->logError('Affiliate3', $row, $e); throw new Gpf_Exception($e->getMessage()); } }