PM-4270
This commit is contained in:
@@ -135,6 +135,12 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $gat_uid = '';
|
||||
|
||||
/**
|
||||
* The value for the rou_element_origin field.
|
||||
* @var string
|
||||
*/
|
||||
protected $rou_element_origin = '';
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
@@ -347,6 +353,17 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
return $this->gat_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [rou_element_origin] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getRouElementOrigin()
|
||||
{
|
||||
|
||||
return $this->rou_element_origin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [rou_uid] column.
|
||||
*
|
||||
@@ -743,6 +760,28 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
|
||||
} // setGatUid()
|
||||
|
||||
/**
|
||||
* Set the value of [rou_element_origin] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setRouElementOrigin($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->rou_element_origin !== $v || $v === '') {
|
||||
$this->rou_element_origin = $v;
|
||||
$this->modifiedColumns[] = RoutePeer::ROU_ELEMENT_ORIGIN;
|
||||
}
|
||||
|
||||
} // setRouElementOrigin()
|
||||
|
||||
/**
|
||||
* Hydrates (populates) the object variables with values from the database resultset.
|
||||
*
|
||||
@@ -796,12 +835,14 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
|
||||
$this->gat_uid = $rs->getString($startcol + 17);
|
||||
|
||||
$this->rou_element_origin = $rs->getString($startcol + 18);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 18; // 18 = RoutePeer::NUM_COLUMNS - RoutePeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 19; // 19 = RoutePeer::NUM_COLUMNS - RoutePeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating Route object", $e);
|
||||
@@ -1059,6 +1100,9 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
case 17:
|
||||
return $this->getGatUid();
|
||||
break;
|
||||
case 18:
|
||||
return $this->getRouElementOrigin();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -1097,6 +1141,7 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
$keys[15] => $this->getRouFromPort(),
|
||||
$keys[16] => $this->getRouEvnUid(),
|
||||
$keys[17] => $this->getGatUid(),
|
||||
$keys[18] => $this->getRouElementOrigin(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -1182,6 +1227,9 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
case 17:
|
||||
$this->setGatUid($value);
|
||||
break;
|
||||
case 18:
|
||||
$this->setRouElementOrigin($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
@@ -1277,6 +1325,10 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
$this->setGatUid($arr[$keys[17]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[18], $arr)) {
|
||||
$this->setRouElementOrigin($arr[$keys[18]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1360,6 +1412,10 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
$criteria->add(RoutePeer::GAT_UID, $this->gat_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(RoutePeer::ROU_ELEMENT_ORIGIN)) {
|
||||
$criteria->add(RoutePeer::ROU_ELEMENT_ORIGIN, $this->rou_element_origin);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
@@ -1448,6 +1504,8 @@ abstract class BaseRoute extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setGatUid($this->gat_uid);
|
||||
|
||||
$copyObj->setRouElementOrigin($this->rou_element_origin);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user