This commit is contained in:
Roly Rudy Gutierrez Pinto
2015-10-05 12:12:58 -04:00
parent 50c98294ec
commit 215b1e960d
8 changed files with 165 additions and 13 deletions

View File

@@ -93,6 +93,12 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
*/
protected $var_accepted_values;
/**
* The value for the inp_doc_uid field.
* @var string
*/
protected $inp_doc_uid = '';
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@@ -228,6 +234,17 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
return $this->var_accepted_values;
}
/**
* Get the [inp_doc_uid] column value.
*
* @return string
*/
public function getInpDocUid()
{
return $this->inp_doc_uid;
}
/**
* Set the value of [var_uid] column.
*
@@ -470,6 +487,28 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
} // setVarAcceptedValues()
/**
* Set the value of [inp_doc_uid] column.
*
* @param string $v new value
* @return void
*/
public function setInpDocUid($v)
{
// Since the native PHP type for this column is string,
// we will cast the input to a string (if it is not).
if ($v !== null && !is_string($v)) {
$v = (string) $v;
}
if ($this->inp_doc_uid !== $v || $v === '') {
$this->inp_doc_uid = $v;
$this->modifiedColumns[] = ProcessVariablesPeer::INP_DOC_UID;
}
} // setInpDocUid()
/**
* Hydrates (populates) the object variables with values from the database resultset.
*
@@ -509,12 +548,14 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
$this->var_accepted_values = $rs->getString($startcol + 10);
$this->inp_doc_uid = $rs->getString($startcol + 11);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 11; // 11 = ProcessVariablesPeer::NUM_COLUMNS - ProcessVariablesPeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 12; // 12 = ProcessVariablesPeer::NUM_COLUMNS - ProcessVariablesPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating ProcessVariables object", $e);
@@ -751,6 +792,9 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
case 10:
return $this->getVarAcceptedValues();
break;
case 11:
return $this->getInpDocUid();
break;
default:
return null;
break;
@@ -782,6 +826,7 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
$keys[8] => $this->getVarNull(),
$keys[9] => $this->getVarDefault(),
$keys[10] => $this->getVarAcceptedValues(),
$keys[11] => $this->getInpDocUid(),
);
return $result;
}
@@ -846,6 +891,9 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
case 10:
$this->setVarAcceptedValues($value);
break;
case 11:
$this->setInpDocUid($value);
break;
} // switch()
}
@@ -913,6 +961,10 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
$this->setVarAcceptedValues($arr[$keys[10]]);
}
if (array_key_exists($keys[11], $arr)) {
$this->setInpDocUid($arr[$keys[11]]);
}
}
/**
@@ -968,6 +1020,10 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
$criteria->add(ProcessVariablesPeer::VAR_ACCEPTED_VALUES, $this->var_accepted_values);
}
if ($this->isColumnModified(ProcessVariablesPeer::INP_DOC_UID)) {
$criteria->add(ProcessVariablesPeer::INP_DOC_UID, $this->inp_doc_uid);
}
return $criteria;
}
@@ -1042,6 +1098,8 @@ abstract class BaseProcessVariables extends BaseObject implements Persistent
$copyObj->setVarAcceptedValues($this->var_accepted_values);
$copyObj->setInpDocUid($this->inp_doc_uid);
$copyObj->setNew(true);