PMC-1367
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
parent
480c67ac37
commit
cedc5bbae5
@@ -33,6 +33,12 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* The value for the app_type field.
|
||||
* @var string
|
||||
*/
|
||||
protected $app_type = 'NORMAL';
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
@@ -58,6 +64,17 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [app_type] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAppType()
|
||||
{
|
||||
|
||||
return $this->app_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [id] column.
|
||||
*
|
||||
@@ -80,6 +97,28 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
|
||||
} // setId()
|
||||
|
||||
/**
|
||||
* Set the value of [app_type] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setAppType($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->app_type !== $v || $v === 'NORMAL') {
|
||||
$this->app_type = $v;
|
||||
$this->modifiedColumns[] = AppSequencePeer::APP_TYPE;
|
||||
}
|
||||
|
||||
} // setAppType()
|
||||
|
||||
/**
|
||||
* Hydrates (populates) the object variables with values from the database resultset.
|
||||
*
|
||||
@@ -99,12 +138,14 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
|
||||
$this->id = $rs->getInt($startcol + 0);
|
||||
|
||||
$this->app_type = $rs->getString($startcol + 1);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 1; // 1 = AppSequencePeer::NUM_COLUMNS - AppSequencePeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 2; // 2 = AppSequencePeer::NUM_COLUMNS - AppSequencePeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating AppSequence object", $e);
|
||||
@@ -311,6 +352,9 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
case 0:
|
||||
return $this->getId();
|
||||
break;
|
||||
case 1:
|
||||
return $this->getAppType();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -332,6 +376,7 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
$keys = AppSequencePeer::getFieldNames($keyType);
|
||||
$result = array(
|
||||
$keys[0] => $this->getId(),
|
||||
$keys[1] => $this->getAppType(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -366,6 +411,9 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
case 0:
|
||||
$this->setId($value);
|
||||
break;
|
||||
case 1:
|
||||
$this->setAppType($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
@@ -393,6 +441,10 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
$this->setId($arr[$keys[0]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[1], $arr)) {
|
||||
$this->setAppType($arr[$keys[1]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -408,6 +460,10 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
$criteria->add(AppSequencePeer::ID, $this->id);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(AppSequencePeer::APP_TYPE)) {
|
||||
$criteria->add(AppSequencePeer::APP_TYPE, $this->app_type);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
@@ -462,6 +518,8 @@ abstract class BaseAppSequence extends BaseObject implements Persistent
|
||||
public function copyInto($copyObj, $deepCopy = false)
|
||||
{
|
||||
|
||||
$copyObj->setAppType($this->app_type);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user