protected function _doInsert($inputRecord) { // gen key $key = $this->genKey(); // get secret $secret = $this->genSecret(); $inputRecord['api_key'] = $key; $inputRecord['secret'] = $secret; parent::_doInsert($inputRecord); }
protected function _doInsert($inputRecord) { $recId = parent::_doInsert($inputRecord); $formMainDO = $this->getDataObj(); foreach ($this->getAssocDOs() as $refDO) { $inputRefRecord = $this->getAssocRec($refDO->objectName); $refRecId = $refDO->insertRecord($inputRefRecord); $inputRefRecord['Id'] = $refRecId; $refRec = $inputRefRecord; $refDO->addRecord($refRec, $isParentObjUpdated); } }