private static function _removeRecordMto1($dataObj, $recArr)
    {
        // set the $recArr[Id] to the parent table foriegn key column
        // get parent/association dataobj
        $asscObj = Openbizx::getObject($dataObj->association["AsscObjName"]);
        // call parent dataobj's updateRecord
        $updateRecArr["Id"] = $asscObj->getFieldValue("Id");
        $updateRecArr[$dataObj->association["FieldRef"]] = "";
        $ok = $asscObj->updateRecord($updateRecArr);
        if ($ok == false)
            return false;
        // requery on this object
        $dataObj->association["FieldRefVal"] = "";
        return $dataObj->runSearch();
    }
private static function _removeRecordMto1($dataObj, $recArr)
    {
        // set the $recArr[Id] to the parent table foriegn key column
        // get parent/association dataobj
        $asscObj = Openbizx::getObject($dataObj->association["AsscObjName"]);
        // call parent dataobj's updateRecord
        $updateRecArr["Id"] = $asscObj->getFieldValue("Id");
        $updateRecArr[$dataObj->association["FieldRef"]] = "";
        $ok = $asscObj->updateRecord($updateRecArr);
        if ($ok == false)
            return false;
        // requery on this object
        $dataObj->association["FieldRefVal"] = "";
        return $dataObj->runSearch();
    }
private static function _removeRecordMto1 ( $ dataObj , $ recArr ) { // set the $recArr[Id] to the parent table foriegn key column // get parent/association dataobj $ asscObj = Openbizx :: getObject ( $ dataObj -> association [ "AsscObjName" ] ) ; // call parent dataobj's updateRecord $ updateRecArr [ "Id" ] = $ asscObj -> getFieldValue ( "Id" ) ; $ updateRecArr [ $ dataObj -> association [ "FieldRef" ] ] = "" ; $ ok = $ asscObj -> updateRecord ( $ updateRecArr ) ; if ( $ ok == false ) return false ; // requery on this object $ dataObj -> association [ "FieldRefVal" ] = "" ; return $ dataObj -> runSearch ( ) ; }
Remove record many to one

@global BizSystem $g_BizSystem
@param BizDataObj $dataObj
@param array $recArr
@return boolean
Remove record many to one