BUG 0000 new Feature: Report table ver 2 (fixes)

- update phisical table fixed
This commit is contained in:
Erik Amaru Ortiz
2011-06-29 12:46:51 -04:00
parent 172bd87580
commit db2ff5a36a
18 changed files with 436 additions and 203 deletions

View File

@@ -132,6 +132,13 @@ abstract class BaseFields extends BaseObject implements Persistent {
*/
protected $fld_filter = 0;
/**
* The value for the add_tab_tag field.
* @var string
*/
protected $add_tab_tag = '';
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@@ -311,6 +318,17 @@ abstract class BaseFields extends BaseObject implements Persistent {
return $this->fld_filter;
}
/**
* Get the [add_tab_tag] column value.
*
* @return string
*/
public function getAddTabTag()
{
return $this->add_tab_tag;
}
/**
* Set the value of [fld_uid] column.
*
@@ -641,6 +659,28 @@ abstract class BaseFields extends BaseObject implements Persistent {
} // setFldFilter()
/**
* Set the value of [add_tab_tag] column.
*
* @param string $v new value
* @return void
*/
public function setAddTabTag($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->add_tab_tag !== $v || $v === '') {
$this->add_tab_tag = $v;
$this->modifiedColumns[] = FieldsPeer::ADD_TAB_TAG;
}
} // setAddTabTag()
/**
* Hydrates (populates) the object variables with values from the database resultset.
*
@@ -688,12 +728,14 @@ abstract class BaseFields extends BaseObject implements Persistent {
$this->fld_filter = $rs->getInt($startcol + 14);
$this->add_tab_tag = $rs->getString($startcol + 15);
$this->resetModified();
$this->setNew(false);
// FIXME - using NUM_COLUMNS may be clearer.
return $startcol + 15; // 15 = FieldsPeer::NUM_COLUMNS - FieldsPeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 16; // 16 = FieldsPeer::NUM_COLUMNS - FieldsPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating Fields object", $e);
@@ -941,6 +983,9 @@ abstract class BaseFields extends BaseObject implements Persistent {
case 14:
return $this->getFldFilter();
break;
case 15:
return $this->getAddTabTag();
break;
default:
return null;
break;
@@ -976,6 +1021,7 @@ abstract class BaseFields extends BaseObject implements Persistent {
$keys[12] => $this->getFldDynName(),
$keys[13] => $this->getFldDynUid(),
$keys[14] => $this->getFldFilter(),
$keys[15] => $this->getAddTabTag(),
);
return $result;
}
@@ -1052,6 +1098,9 @@ abstract class BaseFields extends BaseObject implements Persistent {
case 14:
$this->setFldFilter($value);
break;
case 15:
$this->setAddTabTag($value);
break;
} // switch()
}
@@ -1090,6 +1139,7 @@ abstract class BaseFields extends BaseObject implements Persistent {
if (array_key_exists($keys[12], $arr)) $this->setFldDynName($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setFldDynUid($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setFldFilter($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setAddTabTag($arr[$keys[15]]);
}
/**
@@ -1116,6 +1166,7 @@ abstract class BaseFields extends BaseObject implements Persistent {
if ($this->isColumnModified(FieldsPeer::FLD_DYN_NAME)) $criteria->add(FieldsPeer::FLD_DYN_NAME, $this->fld_dyn_name);
if ($this->isColumnModified(FieldsPeer::FLD_DYN_UID)) $criteria->add(FieldsPeer::FLD_DYN_UID, $this->fld_dyn_uid);
if ($this->isColumnModified(FieldsPeer::FLD_FILTER)) $criteria->add(FieldsPeer::FLD_FILTER, $this->fld_filter);
if ($this->isColumnModified(FieldsPeer::ADD_TAB_TAG)) $criteria->add(FieldsPeer::ADD_TAB_TAG, $this->add_tab_tag);
return $criteria;
}
@@ -1198,6 +1249,8 @@ abstract class BaseFields extends BaseObject implements Persistent {
$copyObj->setFldFilter($this->fld_filter);
$copyObj->setAddTabTag($this->add_tab_tag);
$copyObj->setNew(true);