CC-4961: Show linking

This commit is contained in:
denise 2013-04-04 16:30:33 -04:00
parent b40306cb1b
commit f9d7167638
36 changed files with 2437 additions and 78 deletions

View file

@ -114,6 +114,13 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
*/
protected $broadcasted;
/**
* The value for the stamp_id field.
* Note: this column has a database default value of: 0
* @var int
*/
protected $stamp_id;
/**
* @var CcShowInstances
*/
@ -162,6 +169,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->media_item_played = false;
$this->playout_status = 1;
$this->broadcasted = 0;
$this->stamp_id = 0;
}
/**
@ -406,6 +414,16 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
return $this->broadcasted;
}
/**
* Get the [stamp_id] column value.
*
* @return int
*/
public function getDbStampId()
{
return $this->stamp_id;
}
/**
* Set the value of [id] column.
*
@ -816,6 +834,26 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
return $this;
} // setDbBroadcasted()
/**
* Set the value of [stamp_id] column.
*
* @param int $v new value
* @return CcSchedule The current object (for fluent API support)
*/
public function setDbStampId($v)
{
if ($v !== null) {
$v = (int) $v;
}
if ($this->stamp_id !== $v || $this->isNew()) {
$this->stamp_id = $v;
$this->modifiedColumns[] = CcSchedulePeer::STAMP_ID;
}
return $this;
} // setDbStampId()
/**
* Indicates whether the columns in this object are only set to default values.
*
@ -850,6 +888,10 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
return false;
}
if ($this->stamp_id !== 0) {
return false;
}
// otherwise, everything was equal, so return TRUE
return true;
} // hasOnlyDefaultValues()
@ -886,6 +928,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->instance_id = ($row[$startcol + 11] !== null) ? (int) $row[$startcol + 11] : null;
$this->playout_status = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null;
$this->broadcasted = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null;
$this->stamp_id = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null;
$this->resetModified();
$this->setNew(false);
@ -894,7 +937,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->ensureConsistency();
}
return $startcol + 14; // 14 = CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 15; // 15 = CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating CcSchedule object", $e);
@ -1315,6 +1358,9 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
case 13:
return $this->getDbBroadcasted();
break;
case 14:
return $this->getDbStampId();
break;
default:
return null;
break;
@ -1353,6 +1399,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$keys[11] => $this->getDbInstanceId(),
$keys[12] => $this->getDbPlayoutStatus(),
$keys[13] => $this->getDbBroadcasted(),
$keys[14] => $this->getDbStampId(),
);
if ($includeForeignObjects) {
if (null !== $this->aCcShowInstances) {
@ -1437,6 +1484,9 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
case 13:
$this->setDbBroadcasted($value);
break;
case 14:
$this->setDbStampId($value);
break;
} // switch()
}
@ -1475,6 +1525,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
if (array_key_exists($keys[11], $arr)) $this->setDbInstanceId($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDbPlayoutStatus($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setDbBroadcasted($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setDbStampId($arr[$keys[14]]);
}
/**
@ -1500,6 +1551,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
if ($this->isColumnModified(CcSchedulePeer::INSTANCE_ID)) $criteria->add(CcSchedulePeer::INSTANCE_ID, $this->instance_id);
if ($this->isColumnModified(CcSchedulePeer::PLAYOUT_STATUS)) $criteria->add(CcSchedulePeer::PLAYOUT_STATUS, $this->playout_status);
if ($this->isColumnModified(CcSchedulePeer::BROADCASTED)) $criteria->add(CcSchedulePeer::BROADCASTED, $this->broadcasted);
if ($this->isColumnModified(CcSchedulePeer::STAMP_ID)) $criteria->add(CcSchedulePeer::STAMP_ID, $this->stamp_id);
return $criteria;
}
@ -1574,6 +1626,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$copyObj->setDbInstanceId($this->instance_id);
$copyObj->setDbPlayoutStatus($this->playout_status);
$copyObj->setDbBroadcasted($this->broadcasted);
$copyObj->setDbStampId($this->stamp_id);
if ($deepCopy) {
// important: temporarily setNew(false) because this affects the behavior of
@ -1906,6 +1959,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->instance_id = null;
$this->playout_status = null;
$this->broadcasted = null;
$this->stamp_id = null;
$this->alreadyInSave = false;
$this->alreadyInValidation = false;
$this->clearAllReferences();