Regenerated Propel models because some fields and methods were missing.
This commit is contained in:
parent
aabe3799b1
commit
09c30bde1b
10 changed files with 318 additions and 152 deletions
|
@ -22,9 +22,6 @@ return array (
|
||||||
'BaseCcLiveLog' => 'airtime/om/BaseCcLiveLog.php',
|
'BaseCcLiveLog' => 'airtime/om/BaseCcLiveLog.php',
|
||||||
'BaseCcLiveLogPeer' => 'airtime/om/BaseCcLiveLogPeer.php',
|
'BaseCcLiveLogPeer' => 'airtime/om/BaseCcLiveLogPeer.php',
|
||||||
'BaseCcLiveLogQuery' => 'airtime/om/BaseCcLiveLogQuery.php',
|
'BaseCcLiveLogQuery' => 'airtime/om/BaseCcLiveLogQuery.php',
|
||||||
'BaseCcLocale' => 'airtime/om/BaseCcLocale.php',
|
|
||||||
'BaseCcLocalePeer' => 'airtime/om/BaseCcLocalePeer.php',
|
|
||||||
'BaseCcLocaleQuery' => 'airtime/om/BaseCcLocaleQuery.php',
|
|
||||||
'BaseCcLoginAttempts' => 'airtime/om/BaseCcLoginAttempts.php',
|
'BaseCcLoginAttempts' => 'airtime/om/BaseCcLoginAttempts.php',
|
||||||
'BaseCcLoginAttemptsPeer' => 'airtime/om/BaseCcLoginAttemptsPeer.php',
|
'BaseCcLoginAttemptsPeer' => 'airtime/om/BaseCcLoginAttemptsPeer.php',
|
||||||
'BaseCcLoginAttemptsQuery' => 'airtime/om/BaseCcLoginAttemptsQuery.php',
|
'BaseCcLoginAttemptsQuery' => 'airtime/om/BaseCcLoginAttemptsQuery.php',
|
||||||
|
@ -134,10 +131,6 @@ return array (
|
||||||
'CcLiveLogPeer' => 'airtime/CcLiveLogPeer.php',
|
'CcLiveLogPeer' => 'airtime/CcLiveLogPeer.php',
|
||||||
'CcLiveLogQuery' => 'airtime/CcLiveLogQuery.php',
|
'CcLiveLogQuery' => 'airtime/CcLiveLogQuery.php',
|
||||||
'CcLiveLogTableMap' => 'airtime/map/CcLiveLogTableMap.php',
|
'CcLiveLogTableMap' => 'airtime/map/CcLiveLogTableMap.php',
|
||||||
'CcLocale' => 'airtime/CcLocale.php',
|
|
||||||
'CcLocalePeer' => 'airtime/CcLocalePeer.php',
|
|
||||||
'CcLocaleQuery' => 'airtime/CcLocaleQuery.php',
|
|
||||||
'CcLocaleTableMap' => 'airtime/map/CcLocaleTableMap.php',
|
|
||||||
'CcLoginAttempts' => 'airtime/CcLoginAttempts.php',
|
'CcLoginAttempts' => 'airtime/CcLoginAttempts.php',
|
||||||
'CcLoginAttemptsPeer' => 'airtime/CcLoginAttemptsPeer.php',
|
'CcLoginAttemptsPeer' => 'airtime/CcLoginAttemptsPeer.php',
|
||||||
'CcLoginAttemptsQuery' => 'airtime/CcLoginAttemptsQuery.php',
|
'CcLoginAttemptsQuery' => 'airtime/CcLoginAttemptsQuery.php',
|
||||||
|
|
|
@ -40,6 +40,7 @@ class CcShowInstancesTableMap extends TableMap
|
||||||
$this->setPrimaryKeyMethodInfo('cc_show_instances_id_seq');
|
$this->setPrimaryKeyMethodInfo('cc_show_instances_id_seq');
|
||||||
// columns
|
// columns
|
||||||
$this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null);
|
$this->addPrimaryKey('id', 'DbId', 'INTEGER', true, null, null);
|
||||||
|
$this->addColumn('description', 'DbDescription', 'VARCHAR', false, 512, '');
|
||||||
$this->addColumn('starts', 'DbStarts', 'TIMESTAMP', true, null, null);
|
$this->addColumn('starts', 'DbStarts', 'TIMESTAMP', true, null, null);
|
||||||
$this->addColumn('ends', 'DbEnds', 'TIMESTAMP', true, null, null);
|
$this->addColumn('ends', 'DbEnds', 'TIMESTAMP', true, null, null);
|
||||||
$this->addForeignKey('show_id', 'DbShowId', 'INTEGER', 'cc_show', 'id', true, null, null);
|
$this->addForeignKey('show_id', 'DbShowId', 'INTEGER', 'cc_show', 'id', true, null, null);
|
||||||
|
|
|
@ -52,6 +52,7 @@ class CcShowTableMap extends TableMap
|
||||||
$this->addColumn('live_stream_pass', 'DbLiveStreamPass', 'VARCHAR', false, 255, null);
|
$this->addColumn('live_stream_pass', 'DbLiveStreamPass', 'VARCHAR', false, 255, null);
|
||||||
$this->addColumn('linked', 'DbLinked', 'BOOLEAN', true, null, false);
|
$this->addColumn('linked', 'DbLinked', 'BOOLEAN', true, null, false);
|
||||||
$this->addColumn('is_linkable', 'DbIsLinkable', 'BOOLEAN', true, null, true);
|
$this->addColumn('is_linkable', 'DbIsLinkable', 'BOOLEAN', true, null, true);
|
||||||
|
$this->addColumn('image_path', 'DbImagePath', 'VARCHAR', false, 255, '');
|
||||||
// validators
|
// validators
|
||||||
} // initialize()
|
} // initialize()
|
||||||
|
|
||||||
|
|
|
@ -114,6 +114,13 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
protected $is_linkable;
|
protected $is_linkable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the image_path field.
|
||||||
|
* Note: this column has a database default value of: ''
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $image_path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var PropelObjectCollection|CcShowInstances[] Collection to store aggregation of CcShowInstances objects.
|
* @var PropelObjectCollection|CcShowInstances[] Collection to store aggregation of CcShowInstances objects.
|
||||||
*/
|
*/
|
||||||
|
@ -197,6 +204,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->live_stream_using_custom_auth = false;
|
$this->live_stream_using_custom_auth = false;
|
||||||
$this->linked = false;
|
$this->linked = false;
|
||||||
$this->is_linkable = true;
|
$this->is_linkable = true;
|
||||||
|
$this->image_path = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -352,6 +360,17 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
return $this->is_linkable;
|
return $this->is_linkable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [image_path] column value.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getDbImagePath()
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->image_path;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the value of [id] column.
|
* Set the value of [id] column.
|
||||||
*
|
*
|
||||||
|
@ -657,6 +676,27 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
return $this;
|
return $this;
|
||||||
} // setDbIsLinkable()
|
} // setDbIsLinkable()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [image_path] column.
|
||||||
|
*
|
||||||
|
* @param string $v new value
|
||||||
|
* @return CcShow The current object (for fluent API support)
|
||||||
|
*/
|
||||||
|
public function setDbImagePath($v)
|
||||||
|
{
|
||||||
|
if ($v !== null && is_numeric($v)) {
|
||||||
|
$v = (string) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->image_path !== $v) {
|
||||||
|
$this->image_path = $v;
|
||||||
|
$this->modifiedColumns[] = CcShowPeer::IMAGE_PATH;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
} // setDbImagePath()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the columns in this object are only set to default values.
|
* Indicates whether the columns in this object are only set to default values.
|
||||||
*
|
*
|
||||||
|
@ -695,6 +735,10 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($this->image_path !== '') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// otherwise, everything was equal, so return true
|
// otherwise, everything was equal, so return true
|
||||||
return true;
|
return true;
|
||||||
} // hasOnlyDefaultValues()
|
} // hasOnlyDefaultValues()
|
||||||
|
@ -730,6 +774,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->live_stream_pass = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
$this->live_stream_pass = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
||||||
$this->linked = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null;
|
$this->linked = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null;
|
||||||
$this->is_linkable = ($row[$startcol + 12] !== null) ? (boolean) $row[$startcol + 12] : null;
|
$this->is_linkable = ($row[$startcol + 12] !== null) ? (boolean) $row[$startcol + 12] : null;
|
||||||
|
$this->image_path = ($row[$startcol + 13] !== null) ? (string) $row[$startcol + 13] : null;
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
@ -739,7 +784,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
}
|
}
|
||||||
$this->postHydrate($row, $startcol, $rehydrate);
|
$this->postHydrate($row, $startcol, $rehydrate);
|
||||||
|
|
||||||
return $startcol + 13; // 13 = CcShowPeer::NUM_HYDRATE_COLUMNS.
|
return $startcol + 14; // 14 = CcShowPeer::NUM_HYDRATE_COLUMNS.
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating CcShow object", $e);
|
throw new PropelException("Error populating CcShow object", $e);
|
||||||
|
@ -1076,6 +1121,9 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) {
|
if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) {
|
||||||
$modifiedColumns[':p' . $index++] = '"is_linkable"';
|
$modifiedColumns[':p' . $index++] = '"is_linkable"';
|
||||||
}
|
}
|
||||||
|
if ($this->isColumnModified(CcShowPeer::IMAGE_PATH)) {
|
||||||
|
$modifiedColumns[':p' . $index++] = '"image_path"';
|
||||||
|
}
|
||||||
|
|
||||||
$sql = sprintf(
|
$sql = sprintf(
|
||||||
'INSERT INTO "cc_show" (%s) VALUES (%s)',
|
'INSERT INTO "cc_show" (%s) VALUES (%s)',
|
||||||
|
@ -1126,6 +1174,9 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
case '"is_linkable"':
|
case '"is_linkable"':
|
||||||
$stmt->bindValue($identifier, $this->is_linkable, PDO::PARAM_BOOL);
|
$stmt->bindValue($identifier, $this->is_linkable, PDO::PARAM_BOOL);
|
||||||
break;
|
break;
|
||||||
|
case '"image_path"':
|
||||||
|
$stmt->bindValue($identifier, $this->image_path, PDO::PARAM_STR);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$stmt->execute();
|
$stmt->execute();
|
||||||
|
@ -1324,6 +1375,9 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
case 12:
|
case 12:
|
||||||
return $this->getDbIsLinkable();
|
return $this->getDbIsLinkable();
|
||||||
break;
|
break;
|
||||||
|
case 13:
|
||||||
|
return $this->getDbImagePath();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
break;
|
break;
|
||||||
|
@ -1366,6 +1420,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$keys[10] => $this->getDbLiveStreamPass(),
|
$keys[10] => $this->getDbLiveStreamPass(),
|
||||||
$keys[11] => $this->getDbLinked(),
|
$keys[11] => $this->getDbLinked(),
|
||||||
$keys[12] => $this->getDbIsLinkable(),
|
$keys[12] => $this->getDbIsLinkable(),
|
||||||
|
$keys[13] => $this->getDbImagePath(),
|
||||||
);
|
);
|
||||||
$virtualColumns = $this->virtualColumns;
|
$virtualColumns = $this->virtualColumns;
|
||||||
foreach ($virtualColumns as $key => $virtualColumn) {
|
foreach ($virtualColumns as $key => $virtualColumn) {
|
||||||
|
@ -1458,6 +1513,9 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
case 12:
|
case 12:
|
||||||
$this->setDbIsLinkable($value);
|
$this->setDbIsLinkable($value);
|
||||||
break;
|
break;
|
||||||
|
case 13:
|
||||||
|
$this->setDbImagePath($value);
|
||||||
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1495,6 +1553,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
if (array_key_exists($keys[10], $arr)) $this->setDbLiveStreamPass($arr[$keys[10]]);
|
if (array_key_exists($keys[10], $arr)) $this->setDbLiveStreamPass($arr[$keys[10]]);
|
||||||
if (array_key_exists($keys[11], $arr)) $this->setDbLinked($arr[$keys[11]]);
|
if (array_key_exists($keys[11], $arr)) $this->setDbLinked($arr[$keys[11]]);
|
||||||
if (array_key_exists($keys[12], $arr)) $this->setDbIsLinkable($arr[$keys[12]]);
|
if (array_key_exists($keys[12], $arr)) $this->setDbIsLinkable($arr[$keys[12]]);
|
||||||
|
if (array_key_exists($keys[13], $arr)) $this->setDbImagePath($arr[$keys[13]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1519,6 +1578,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_PASS)) $criteria->add(CcShowPeer::LIVE_STREAM_PASS, $this->live_stream_pass);
|
if ($this->isColumnModified(CcShowPeer::LIVE_STREAM_PASS)) $criteria->add(CcShowPeer::LIVE_STREAM_PASS, $this->live_stream_pass);
|
||||||
if ($this->isColumnModified(CcShowPeer::LINKED)) $criteria->add(CcShowPeer::LINKED, $this->linked);
|
if ($this->isColumnModified(CcShowPeer::LINKED)) $criteria->add(CcShowPeer::LINKED, $this->linked);
|
||||||
if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) $criteria->add(CcShowPeer::IS_LINKABLE, $this->is_linkable);
|
if ($this->isColumnModified(CcShowPeer::IS_LINKABLE)) $criteria->add(CcShowPeer::IS_LINKABLE, $this->is_linkable);
|
||||||
|
if ($this->isColumnModified(CcShowPeer::IMAGE_PATH)) $criteria->add(CcShowPeer::IMAGE_PATH, $this->image_path);
|
||||||
|
|
||||||
return $criteria;
|
return $criteria;
|
||||||
}
|
}
|
||||||
|
@ -1594,6 +1654,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$copyObj->setDbLiveStreamPass($this->getDbLiveStreamPass());
|
$copyObj->setDbLiveStreamPass($this->getDbLiveStreamPass());
|
||||||
$copyObj->setDbLinked($this->getDbLinked());
|
$copyObj->setDbLinked($this->getDbLinked());
|
||||||
$copyObj->setDbIsLinkable($this->getDbIsLinkable());
|
$copyObj->setDbIsLinkable($this->getDbIsLinkable());
|
||||||
|
$copyObj->setDbImagePath($this->getDbImagePath());
|
||||||
|
|
||||||
if ($deepCopy && !$this->startCopy) {
|
if ($deepCopy && !$this->startCopy) {
|
||||||
// important: temporarily setNew(false) because this affects the behavior of
|
// important: temporarily setNew(false) because this affects the behavior of
|
||||||
|
@ -2694,6 +2755,7 @@ abstract class BaseCcShow extends BaseObject implements Persistent
|
||||||
$this->live_stream_pass = null;
|
$this->live_stream_pass = null;
|
||||||
$this->linked = null;
|
$this->linked = null;
|
||||||
$this->is_linkable = null;
|
$this->is_linkable = null;
|
||||||
|
$this->image_path = null;
|
||||||
$this->alreadyInSave = false;
|
$this->alreadyInSave = false;
|
||||||
$this->alreadyInValidation = false;
|
$this->alreadyInValidation = false;
|
||||||
$this->alreadyInClearAllReferencesDeep = false;
|
$this->alreadyInClearAllReferencesDeep = false;
|
||||||
|
|
|
@ -35,6 +35,13 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The value for the description field.
|
||||||
|
* Note: this column has a database default value of: ''
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
protected $description;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value for the starts field.
|
* The value for the starts field.
|
||||||
* @var string
|
* @var string
|
||||||
|
@ -184,6 +191,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
public function applyDefaultValues()
|
public function applyDefaultValues()
|
||||||
{
|
{
|
||||||
|
$this->description = '';
|
||||||
$this->record = 0;
|
$this->record = 0;
|
||||||
$this->rebroadcast = 0;
|
$this->rebroadcast = 0;
|
||||||
$this->time_filled = '00:00:00';
|
$this->time_filled = '00:00:00';
|
||||||
|
@ -211,6 +219,17 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the [description] column value.
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getDbDescription()
|
||||||
|
{
|
||||||
|
|
||||||
|
return $this->description;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the [optionally formatted] temporal [starts] column value.
|
* Get the [optionally formatted] temporal [starts] column value.
|
||||||
*
|
*
|
||||||
|
@ -449,6 +468,27 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
return $this;
|
return $this;
|
||||||
} // setDbId()
|
} // setDbId()
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the value of [description] column.
|
||||||
|
*
|
||||||
|
* @param string $v new value
|
||||||
|
* @return CcShowInstances The current object (for fluent API support)
|
||||||
|
*/
|
||||||
|
public function setDbDescription($v)
|
||||||
|
{
|
||||||
|
if ($v !== null && is_numeric($v)) {
|
||||||
|
$v = (string) $v;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($this->description !== $v) {
|
||||||
|
$this->description = $v;
|
||||||
|
$this->modifiedColumns[] = CcShowInstancesPeer::DESCRIPTION;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
} // setDbDescription()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the value of [starts] column to a normalized version of the date/time value specified.
|
* Sets the value of [starts] column to a normalized version of the date/time value specified.
|
||||||
*
|
*
|
||||||
|
@ -718,6 +758,10 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
public function hasOnlyDefaultValues()
|
public function hasOnlyDefaultValues()
|
||||||
{
|
{
|
||||||
|
if ($this->description !== '') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->record !== 0) {
|
if ($this->record !== 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -757,17 +801,18 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
||||||
$this->starts = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
$this->description = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
||||||
$this->ends = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
$this->starts = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||||
$this->show_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null;
|
$this->ends = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||||
$this->record = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
|
$this->show_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
|
||||||
$this->rebroadcast = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
|
$this->record = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
|
||||||
$this->instance_id = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
|
$this->rebroadcast = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
|
||||||
$this->file_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
|
$this->instance_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
|
||||||
$this->time_filled = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null;
|
$this->file_id = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
|
||||||
$this->created = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
|
$this->time_filled = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
|
||||||
$this->last_scheduled = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
$this->created = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
||||||
$this->modified_instance = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null;
|
$this->last_scheduled = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
|
||||||
|
$this->modified_instance = ($row[$startcol + 12] !== null) ? (boolean) $row[$startcol + 12] : null;
|
||||||
$this->resetModified();
|
$this->resetModified();
|
||||||
|
|
||||||
$this->setNew(false);
|
$this->setNew(false);
|
||||||
|
@ -777,7 +822,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
}
|
}
|
||||||
$this->postHydrate($row, $startcol, $rehydrate);
|
$this->postHydrate($row, $startcol, $rehydrate);
|
||||||
|
|
||||||
return $startcol + 12; // 12 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS.
|
return $startcol + 13; // 13 = CcShowInstancesPeer::NUM_HYDRATE_COLUMNS.
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new PropelException("Error populating CcShowInstances object", $e);
|
throw new PropelException("Error populating CcShowInstances object", $e);
|
||||||
|
@ -1098,6 +1143,9 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
if ($this->isColumnModified(CcShowInstancesPeer::ID)) {
|
if ($this->isColumnModified(CcShowInstancesPeer::ID)) {
|
||||||
$modifiedColumns[':p' . $index++] = '"id"';
|
$modifiedColumns[':p' . $index++] = '"id"';
|
||||||
}
|
}
|
||||||
|
if ($this->isColumnModified(CcShowInstancesPeer::DESCRIPTION)) {
|
||||||
|
$modifiedColumns[':p' . $index++] = '"description"';
|
||||||
|
}
|
||||||
if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) {
|
if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) {
|
||||||
$modifiedColumns[':p' . $index++] = '"starts"';
|
$modifiedColumns[':p' . $index++] = '"starts"';
|
||||||
}
|
}
|
||||||
|
@ -1145,6 +1193,9 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
case '"id"':
|
case '"id"':
|
||||||
$stmt->bindValue($identifier, $this->id, PDO::PARAM_INT);
|
$stmt->bindValue($identifier, $this->id, PDO::PARAM_INT);
|
||||||
break;
|
break;
|
||||||
|
case '"description"':
|
||||||
|
$stmt->bindValue($identifier, $this->description, PDO::PARAM_STR);
|
||||||
|
break;
|
||||||
case '"starts"':
|
case '"starts"':
|
||||||
$stmt->bindValue($identifier, $this->starts, PDO::PARAM_STR);
|
$stmt->bindValue($identifier, $this->starts, PDO::PARAM_STR);
|
||||||
break;
|
break;
|
||||||
|
@ -1357,36 +1408,39 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
return $this->getDbId();
|
return $this->getDbId();
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
return $this->getDbStarts();
|
return $this->getDbDescription();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
return $this->getDbEnds();
|
return $this->getDbStarts();
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
return $this->getDbShowId();
|
return $this->getDbEnds();
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
return $this->getDbRecord();
|
return $this->getDbShowId();
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
return $this->getDbRebroadcast();
|
return $this->getDbRecord();
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
return $this->getDbOriginalShow();
|
return $this->getDbRebroadcast();
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
return $this->getDbRecordedFile();
|
return $this->getDbOriginalShow();
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
return $this->getDbTimeFilled();
|
return $this->getDbRecordedFile();
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
return $this->getDbCreated();
|
return $this->getDbTimeFilled();
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
return $this->getDbLastScheduled();
|
return $this->getDbCreated();
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
|
return $this->getDbLastScheduled();
|
||||||
|
break;
|
||||||
|
case 12:
|
||||||
return $this->getDbModifiedInstance();
|
return $this->getDbModifiedInstance();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -1419,17 +1473,18 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
$keys = CcShowInstancesPeer::getFieldNames($keyType);
|
$keys = CcShowInstancesPeer::getFieldNames($keyType);
|
||||||
$result = array(
|
$result = array(
|
||||||
$keys[0] => $this->getDbId(),
|
$keys[0] => $this->getDbId(),
|
||||||
$keys[1] => $this->getDbStarts(),
|
$keys[1] => $this->getDbDescription(),
|
||||||
$keys[2] => $this->getDbEnds(),
|
$keys[2] => $this->getDbStarts(),
|
||||||
$keys[3] => $this->getDbShowId(),
|
$keys[3] => $this->getDbEnds(),
|
||||||
$keys[4] => $this->getDbRecord(),
|
$keys[4] => $this->getDbShowId(),
|
||||||
$keys[5] => $this->getDbRebroadcast(),
|
$keys[5] => $this->getDbRecord(),
|
||||||
$keys[6] => $this->getDbOriginalShow(),
|
$keys[6] => $this->getDbRebroadcast(),
|
||||||
$keys[7] => $this->getDbRecordedFile(),
|
$keys[7] => $this->getDbOriginalShow(),
|
||||||
$keys[8] => $this->getDbTimeFilled(),
|
$keys[8] => $this->getDbRecordedFile(),
|
||||||
$keys[9] => $this->getDbCreated(),
|
$keys[9] => $this->getDbTimeFilled(),
|
||||||
$keys[10] => $this->getDbLastScheduled(),
|
$keys[10] => $this->getDbCreated(),
|
||||||
$keys[11] => $this->getDbModifiedInstance(),
|
$keys[11] => $this->getDbLastScheduled(),
|
||||||
|
$keys[12] => $this->getDbModifiedInstance(),
|
||||||
);
|
);
|
||||||
$virtualColumns = $this->virtualColumns;
|
$virtualColumns = $this->virtualColumns;
|
||||||
foreach ($virtualColumns as $key => $virtualColumn) {
|
foreach ($virtualColumns as $key => $virtualColumn) {
|
||||||
|
@ -1493,36 +1548,39 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
$this->setDbId($value);
|
$this->setDbId($value);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
$this->setDbStarts($value);
|
$this->setDbDescription($value);
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
$this->setDbEnds($value);
|
$this->setDbStarts($value);
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
$this->setDbShowId($value);
|
$this->setDbEnds($value);
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
$this->setDbRecord($value);
|
$this->setDbShowId($value);
|
||||||
break;
|
break;
|
||||||
case 5:
|
case 5:
|
||||||
$this->setDbRebroadcast($value);
|
$this->setDbRecord($value);
|
||||||
break;
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
$this->setDbOriginalShow($value);
|
$this->setDbRebroadcast($value);
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
$this->setDbRecordedFile($value);
|
$this->setDbOriginalShow($value);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case 8:
|
||||||
$this->setDbTimeFilled($value);
|
$this->setDbRecordedFile($value);
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
$this->setDbCreated($value);
|
$this->setDbTimeFilled($value);
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
$this->setDbLastScheduled($value);
|
$this->setDbCreated($value);
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
|
$this->setDbLastScheduled($value);
|
||||||
|
break;
|
||||||
|
case 12:
|
||||||
$this->setDbModifiedInstance($value);
|
$this->setDbModifiedInstance($value);
|
||||||
break;
|
break;
|
||||||
} // switch()
|
} // switch()
|
||||||
|
@ -1550,17 +1608,18 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
$keys = CcShowInstancesPeer::getFieldNames($keyType);
|
$keys = CcShowInstancesPeer::getFieldNames($keyType);
|
||||||
|
|
||||||
if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
|
if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
|
||||||
if (array_key_exists($keys[1], $arr)) $this->setDbStarts($arr[$keys[1]]);
|
if (array_key_exists($keys[1], $arr)) $this->setDbDescription($arr[$keys[1]]);
|
||||||
if (array_key_exists($keys[2], $arr)) $this->setDbEnds($arr[$keys[2]]);
|
if (array_key_exists($keys[2], $arr)) $this->setDbStarts($arr[$keys[2]]);
|
||||||
if (array_key_exists($keys[3], $arr)) $this->setDbShowId($arr[$keys[3]]);
|
if (array_key_exists($keys[3], $arr)) $this->setDbEnds($arr[$keys[3]]);
|
||||||
if (array_key_exists($keys[4], $arr)) $this->setDbRecord($arr[$keys[4]]);
|
if (array_key_exists($keys[4], $arr)) $this->setDbShowId($arr[$keys[4]]);
|
||||||
if (array_key_exists($keys[5], $arr)) $this->setDbRebroadcast($arr[$keys[5]]);
|
if (array_key_exists($keys[5], $arr)) $this->setDbRecord($arr[$keys[5]]);
|
||||||
if (array_key_exists($keys[6], $arr)) $this->setDbOriginalShow($arr[$keys[6]]);
|
if (array_key_exists($keys[6], $arr)) $this->setDbRebroadcast($arr[$keys[6]]);
|
||||||
if (array_key_exists($keys[7], $arr)) $this->setDbRecordedFile($arr[$keys[7]]);
|
if (array_key_exists($keys[7], $arr)) $this->setDbOriginalShow($arr[$keys[7]]);
|
||||||
if (array_key_exists($keys[8], $arr)) $this->setDbTimeFilled($arr[$keys[8]]);
|
if (array_key_exists($keys[8], $arr)) $this->setDbRecordedFile($arr[$keys[8]]);
|
||||||
if (array_key_exists($keys[9], $arr)) $this->setDbCreated($arr[$keys[9]]);
|
if (array_key_exists($keys[9], $arr)) $this->setDbTimeFilled($arr[$keys[9]]);
|
||||||
if (array_key_exists($keys[10], $arr)) $this->setDbLastScheduled($arr[$keys[10]]);
|
if (array_key_exists($keys[10], $arr)) $this->setDbCreated($arr[$keys[10]]);
|
||||||
if (array_key_exists($keys[11], $arr)) $this->setDbModifiedInstance($arr[$keys[11]]);
|
if (array_key_exists($keys[11], $arr)) $this->setDbLastScheduled($arr[$keys[11]]);
|
||||||
|
if (array_key_exists($keys[12], $arr)) $this->setDbModifiedInstance($arr[$keys[12]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1573,6 +1632,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
$criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME);
|
$criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME);
|
||||||
|
|
||||||
if ($this->isColumnModified(CcShowInstancesPeer::ID)) $criteria->add(CcShowInstancesPeer::ID, $this->id);
|
if ($this->isColumnModified(CcShowInstancesPeer::ID)) $criteria->add(CcShowInstancesPeer::ID, $this->id);
|
||||||
|
if ($this->isColumnModified(CcShowInstancesPeer::DESCRIPTION)) $criteria->add(CcShowInstancesPeer::DESCRIPTION, $this->description);
|
||||||
if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) $criteria->add(CcShowInstancesPeer::STARTS, $this->starts);
|
if ($this->isColumnModified(CcShowInstancesPeer::STARTS)) $criteria->add(CcShowInstancesPeer::STARTS, $this->starts);
|
||||||
if ($this->isColumnModified(CcShowInstancesPeer::ENDS)) $criteria->add(CcShowInstancesPeer::ENDS, $this->ends);
|
if ($this->isColumnModified(CcShowInstancesPeer::ENDS)) $criteria->add(CcShowInstancesPeer::ENDS, $this->ends);
|
||||||
if ($this->isColumnModified(CcShowInstancesPeer::SHOW_ID)) $criteria->add(CcShowInstancesPeer::SHOW_ID, $this->show_id);
|
if ($this->isColumnModified(CcShowInstancesPeer::SHOW_ID)) $criteria->add(CcShowInstancesPeer::SHOW_ID, $this->show_id);
|
||||||
|
@ -1647,6 +1707,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
*/
|
*/
|
||||||
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
|
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
|
||||||
{
|
{
|
||||||
|
$copyObj->setDbDescription($this->getDbDescription());
|
||||||
$copyObj->setDbStarts($this->getDbStarts());
|
$copyObj->setDbStarts($this->getDbStarts());
|
||||||
$copyObj->setDbEnds($this->getDbEnds());
|
$copyObj->setDbEnds($this->getDbEnds());
|
||||||
$copyObj->setDbShowId($this->getDbShowId());
|
$copyObj->setDbShowId($this->getDbShowId());
|
||||||
|
@ -2718,6 +2779,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
|
||||||
public function clear()
|
public function clear()
|
||||||
{
|
{
|
||||||
$this->id = null;
|
$this->id = null;
|
||||||
|
$this->description = null;
|
||||||
$this->starts = null;
|
$this->starts = null;
|
||||||
$this->ends = null;
|
$this->ends = null;
|
||||||
$this->show_id = null;
|
$this->show_id = null;
|
||||||
|
|
|
@ -24,17 +24,20 @@ abstract class BaseCcShowInstancesPeer
|
||||||
const TM_CLASS = 'CcShowInstancesTableMap';
|
const TM_CLASS = 'CcShowInstancesTableMap';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 12;
|
const NUM_COLUMNS = 13;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
|
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
|
||||||
const NUM_HYDRATE_COLUMNS = 12;
|
const NUM_HYDRATE_COLUMNS = 13;
|
||||||
|
|
||||||
/** the column name for the id field */
|
/** the column name for the id field */
|
||||||
const ID = 'cc_show_instances.id';
|
const ID = 'cc_show_instances.id';
|
||||||
|
|
||||||
|
/** the column name for the description field */
|
||||||
|
const DESCRIPTION = 'cc_show_instances.description';
|
||||||
|
|
||||||
/** the column name for the starts field */
|
/** the column name for the starts field */
|
||||||
const STARTS = 'cc_show_instances.starts';
|
const STARTS = 'cc_show_instances.starts';
|
||||||
|
|
||||||
|
@ -87,12 +90,12 @@ abstract class BaseCcShowInstancesPeer
|
||||||
* e.g. CcShowInstancesPeer::$fieldNames[CcShowInstancesPeer::TYPE_PHPNAME][0] = 'Id'
|
* e.g. CcShowInstancesPeer::$fieldNames[CcShowInstancesPeer::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
protected static $fieldNames = array (
|
protected static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbShowId', 'DbRecord', 'DbRebroadcast', 'DbOriginalShow', 'DbRecordedFile', 'DbTimeFilled', 'DbCreated', 'DbLastScheduled', 'DbModifiedInstance', ),
|
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbDescription', 'DbStarts', 'DbEnds', 'DbShowId', 'DbRecord', 'DbRebroadcast', 'DbOriginalShow', 'DbRecordedFile', 'DbTimeFilled', 'DbCreated', 'DbLastScheduled', 'DbModifiedInstance', ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbShowId', 'dbRecord', 'dbRebroadcast', 'dbOriginalShow', 'dbRecordedFile', 'dbTimeFilled', 'dbCreated', 'dbLastScheduled', 'dbModifiedInstance', ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbDescription', 'dbStarts', 'dbEnds', 'dbShowId', 'dbRecord', 'dbRebroadcast', 'dbOriginalShow', 'dbRecordedFile', 'dbTimeFilled', 'dbCreated', 'dbLastScheduled', 'dbModifiedInstance', ),
|
||||||
BasePeer::TYPE_COLNAME => array (CcShowInstancesPeer::ID, CcShowInstancesPeer::STARTS, CcShowInstancesPeer::ENDS, CcShowInstancesPeer::SHOW_ID, CcShowInstancesPeer::RECORD, CcShowInstancesPeer::REBROADCAST, CcShowInstancesPeer::INSTANCE_ID, CcShowInstancesPeer::FILE_ID, CcShowInstancesPeer::TIME_FILLED, CcShowInstancesPeer::CREATED, CcShowInstancesPeer::LAST_SCHEDULED, CcShowInstancesPeer::MODIFIED_INSTANCE, ),
|
BasePeer::TYPE_COLNAME => array (CcShowInstancesPeer::ID, CcShowInstancesPeer::DESCRIPTION, CcShowInstancesPeer::STARTS, CcShowInstancesPeer::ENDS, CcShowInstancesPeer::SHOW_ID, CcShowInstancesPeer::RECORD, CcShowInstancesPeer::REBROADCAST, CcShowInstancesPeer::INSTANCE_ID, CcShowInstancesPeer::FILE_ID, CcShowInstancesPeer::TIME_FILLED, CcShowInstancesPeer::CREATED, CcShowInstancesPeer::LAST_SCHEDULED, CcShowInstancesPeer::MODIFIED_INSTANCE, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'SHOW_ID', 'RECORD', 'REBROADCAST', 'INSTANCE_ID', 'FILE_ID', 'TIME_FILLED', 'CREATED', 'LAST_SCHEDULED', 'MODIFIED_INSTANCE', ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'DESCRIPTION', 'STARTS', 'ENDS', 'SHOW_ID', 'RECORD', 'REBROADCAST', 'INSTANCE_ID', 'FILE_ID', 'TIME_FILLED', 'CREATED', 'LAST_SCHEDULED', 'MODIFIED_INSTANCE', ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'show_id', 'record', 'rebroadcast', 'instance_id', 'file_id', 'time_filled', 'created', 'last_scheduled', 'modified_instance', ),
|
BasePeer::TYPE_FIELDNAME => array ('id', 'description', 'starts', 'ends', 'show_id', 'record', 'rebroadcast', 'instance_id', 'file_id', 'time_filled', 'created', 'last_scheduled', 'modified_instance', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -102,12 +105,12 @@ abstract class BaseCcShowInstancesPeer
|
||||||
* e.g. CcShowInstancesPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. CcShowInstancesPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
protected static $fieldKeys = array (
|
protected static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbShowId' => 3, 'DbRecord' => 4, 'DbRebroadcast' => 5, 'DbOriginalShow' => 6, 'DbRecordedFile' => 7, 'DbTimeFilled' => 8, 'DbCreated' => 9, 'DbLastScheduled' => 10, 'DbModifiedInstance' => 11, ),
|
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbDescription' => 1, 'DbStarts' => 2, 'DbEnds' => 3, 'DbShowId' => 4, 'DbRecord' => 5, 'DbRebroadcast' => 6, 'DbOriginalShow' => 7, 'DbRecordedFile' => 8, 'DbTimeFilled' => 9, 'DbCreated' => 10, 'DbLastScheduled' => 11, 'DbModifiedInstance' => 12, ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbShowId' => 3, 'dbRecord' => 4, 'dbRebroadcast' => 5, 'dbOriginalShow' => 6, 'dbRecordedFile' => 7, 'dbTimeFilled' => 8, 'dbCreated' => 9, 'dbLastScheduled' => 10, 'dbModifiedInstance' => 11, ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbDescription' => 1, 'dbStarts' => 2, 'dbEnds' => 3, 'dbShowId' => 4, 'dbRecord' => 5, 'dbRebroadcast' => 6, 'dbOriginalShow' => 7, 'dbRecordedFile' => 8, 'dbTimeFilled' => 9, 'dbCreated' => 10, 'dbLastScheduled' => 11, 'dbModifiedInstance' => 12, ),
|
||||||
BasePeer::TYPE_COLNAME => array (CcShowInstancesPeer::ID => 0, CcShowInstancesPeer::STARTS => 1, CcShowInstancesPeer::ENDS => 2, CcShowInstancesPeer::SHOW_ID => 3, CcShowInstancesPeer::RECORD => 4, CcShowInstancesPeer::REBROADCAST => 5, CcShowInstancesPeer::INSTANCE_ID => 6, CcShowInstancesPeer::FILE_ID => 7, CcShowInstancesPeer::TIME_FILLED => 8, CcShowInstancesPeer::CREATED => 9, CcShowInstancesPeer::LAST_SCHEDULED => 10, CcShowInstancesPeer::MODIFIED_INSTANCE => 11, ),
|
BasePeer::TYPE_COLNAME => array (CcShowInstancesPeer::ID => 0, CcShowInstancesPeer::DESCRIPTION => 1, CcShowInstancesPeer::STARTS => 2, CcShowInstancesPeer::ENDS => 3, CcShowInstancesPeer::SHOW_ID => 4, CcShowInstancesPeer::RECORD => 5, CcShowInstancesPeer::REBROADCAST => 6, CcShowInstancesPeer::INSTANCE_ID => 7, CcShowInstancesPeer::FILE_ID => 8, CcShowInstancesPeer::TIME_FILLED => 9, CcShowInstancesPeer::CREATED => 10, CcShowInstancesPeer::LAST_SCHEDULED => 11, CcShowInstancesPeer::MODIFIED_INSTANCE => 12, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'SHOW_ID' => 3, 'RECORD' => 4, 'REBROADCAST' => 5, 'INSTANCE_ID' => 6, 'FILE_ID' => 7, 'TIME_FILLED' => 8, 'CREATED' => 9, 'LAST_SCHEDULED' => 10, 'MODIFIED_INSTANCE' => 11, ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'DESCRIPTION' => 1, 'STARTS' => 2, 'ENDS' => 3, 'SHOW_ID' => 4, 'RECORD' => 5, 'REBROADCAST' => 6, 'INSTANCE_ID' => 7, 'FILE_ID' => 8, 'TIME_FILLED' => 9, 'CREATED' => 10, 'LAST_SCHEDULED' => 11, 'MODIFIED_INSTANCE' => 12, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'show_id' => 3, 'record' => 4, 'rebroadcast' => 5, 'instance_id' => 6, 'file_id' => 7, 'time_filled' => 8, 'created' => 9, 'last_scheduled' => 10, 'modified_instance' => 11, ),
|
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'description' => 1, 'starts' => 2, 'ends' => 3, 'show_id' => 4, 'record' => 5, 'rebroadcast' => 6, 'instance_id' => 7, 'file_id' => 8, 'time_filled' => 9, 'created' => 10, 'last_scheduled' => 11, 'modified_instance' => 12, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -182,6 +185,7 @@ abstract class BaseCcShowInstancesPeer
|
||||||
{
|
{
|
||||||
if (null === $alias) {
|
if (null === $alias) {
|
||||||
$criteria->addSelectColumn(CcShowInstancesPeer::ID);
|
$criteria->addSelectColumn(CcShowInstancesPeer::ID);
|
||||||
|
$criteria->addSelectColumn(CcShowInstancesPeer::DESCRIPTION);
|
||||||
$criteria->addSelectColumn(CcShowInstancesPeer::STARTS);
|
$criteria->addSelectColumn(CcShowInstancesPeer::STARTS);
|
||||||
$criteria->addSelectColumn(CcShowInstancesPeer::ENDS);
|
$criteria->addSelectColumn(CcShowInstancesPeer::ENDS);
|
||||||
$criteria->addSelectColumn(CcShowInstancesPeer::SHOW_ID);
|
$criteria->addSelectColumn(CcShowInstancesPeer::SHOW_ID);
|
||||||
|
@ -195,6 +199,7 @@ abstract class BaseCcShowInstancesPeer
|
||||||
$criteria->addSelectColumn(CcShowInstancesPeer::MODIFIED_INSTANCE);
|
$criteria->addSelectColumn(CcShowInstancesPeer::MODIFIED_INSTANCE);
|
||||||
} else {
|
} else {
|
||||||
$criteria->addSelectColumn($alias . '.id');
|
$criteria->addSelectColumn($alias . '.id');
|
||||||
|
$criteria->addSelectColumn($alias . '.description');
|
||||||
$criteria->addSelectColumn($alias . '.starts');
|
$criteria->addSelectColumn($alias . '.starts');
|
||||||
$criteria->addSelectColumn($alias . '.ends');
|
$criteria->addSelectColumn($alias . '.ends');
|
||||||
$criteria->addSelectColumn($alias . '.show_id');
|
$criteria->addSelectColumn($alias . '.show_id');
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @method CcShowInstancesQuery orderByDbId($order = Criteria::ASC) Order by the id column
|
* @method CcShowInstancesQuery orderByDbId($order = Criteria::ASC) Order by the id column
|
||||||
|
* @method CcShowInstancesQuery orderByDbDescription($order = Criteria::ASC) Order by the description column
|
||||||
* @method CcShowInstancesQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column
|
* @method CcShowInstancesQuery orderByDbStarts($order = Criteria::ASC) Order by the starts column
|
||||||
* @method CcShowInstancesQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column
|
* @method CcShowInstancesQuery orderByDbEnds($order = Criteria::ASC) Order by the ends column
|
||||||
* @method CcShowInstancesQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column
|
* @method CcShowInstancesQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column
|
||||||
|
@ -20,6 +21,7 @@
|
||||||
* @method CcShowInstancesQuery orderByDbModifiedInstance($order = Criteria::ASC) Order by the modified_instance column
|
* @method CcShowInstancesQuery orderByDbModifiedInstance($order = Criteria::ASC) Order by the modified_instance column
|
||||||
*
|
*
|
||||||
* @method CcShowInstancesQuery groupByDbId() Group by the id column
|
* @method CcShowInstancesQuery groupByDbId() Group by the id column
|
||||||
|
* @method CcShowInstancesQuery groupByDbDescription() Group by the description column
|
||||||
* @method CcShowInstancesQuery groupByDbStarts() Group by the starts column
|
* @method CcShowInstancesQuery groupByDbStarts() Group by the starts column
|
||||||
* @method CcShowInstancesQuery groupByDbEnds() Group by the ends column
|
* @method CcShowInstancesQuery groupByDbEnds() Group by the ends column
|
||||||
* @method CcShowInstancesQuery groupByDbShowId() Group by the show_id column
|
* @method CcShowInstancesQuery groupByDbShowId() Group by the show_id column
|
||||||
|
@ -63,6 +65,7 @@
|
||||||
* @method CcShowInstances findOne(PropelPDO $con = null) Return the first CcShowInstances matching the query
|
* @method CcShowInstances findOne(PropelPDO $con = null) Return the first CcShowInstances matching the query
|
||||||
* @method CcShowInstances findOneOrCreate(PropelPDO $con = null) Return the first CcShowInstances matching the query, or a new CcShowInstances object populated from the query conditions when no match is found
|
* @method CcShowInstances findOneOrCreate(PropelPDO $con = null) Return the first CcShowInstances matching the query, or a new CcShowInstances object populated from the query conditions when no match is found
|
||||||
*
|
*
|
||||||
|
* @method CcShowInstances findOneByDbDescription(string $description) Return the first CcShowInstances filtered by the description column
|
||||||
* @method CcShowInstances findOneByDbStarts(string $starts) Return the first CcShowInstances filtered by the starts column
|
* @method CcShowInstances findOneByDbStarts(string $starts) Return the first CcShowInstances filtered by the starts column
|
||||||
* @method CcShowInstances findOneByDbEnds(string $ends) Return the first CcShowInstances filtered by the ends column
|
* @method CcShowInstances findOneByDbEnds(string $ends) Return the first CcShowInstances filtered by the ends column
|
||||||
* @method CcShowInstances findOneByDbShowId(int $show_id) Return the first CcShowInstances filtered by the show_id column
|
* @method CcShowInstances findOneByDbShowId(int $show_id) Return the first CcShowInstances filtered by the show_id column
|
||||||
|
@ -76,6 +79,7 @@
|
||||||
* @method CcShowInstances findOneByDbModifiedInstance(boolean $modified_instance) Return the first CcShowInstances filtered by the modified_instance column
|
* @method CcShowInstances findOneByDbModifiedInstance(boolean $modified_instance) Return the first CcShowInstances filtered by the modified_instance column
|
||||||
*
|
*
|
||||||
* @method array findByDbId(int $id) Return CcShowInstances objects filtered by the id column
|
* @method array findByDbId(int $id) Return CcShowInstances objects filtered by the id column
|
||||||
|
* @method array findByDbDescription(string $description) Return CcShowInstances objects filtered by the description column
|
||||||
* @method array findByDbStarts(string $starts) Return CcShowInstances objects filtered by the starts column
|
* @method array findByDbStarts(string $starts) Return CcShowInstances objects filtered by the starts column
|
||||||
* @method array findByDbEnds(string $ends) Return CcShowInstances objects filtered by the ends column
|
* @method array findByDbEnds(string $ends) Return CcShowInstances objects filtered by the ends column
|
||||||
* @method array findByDbShowId(int $show_id) Return CcShowInstances objects filtered by the show_id column
|
* @method array findByDbShowId(int $show_id) Return CcShowInstances objects filtered by the show_id column
|
||||||
|
@ -194,7 +198,7 @@ abstract class BaseCcShowInstancesQuery extends ModelCriteria
|
||||||
*/
|
*/
|
||||||
protected function findPkSimple($key, $con)
|
protected function findPkSimple($key, $con)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT "id", "starts", "ends", "show_id", "record", "rebroadcast", "instance_id", "file_id", "time_filled", "created", "last_scheduled", "modified_instance" FROM "cc_show_instances" WHERE "id" = :p0';
|
$sql = 'SELECT "id", "description", "starts", "ends", "show_id", "record", "rebroadcast", "instance_id", "file_id", "time_filled", "created", "last_scheduled", "modified_instance" FROM "cc_show_instances" WHERE "id" = :p0';
|
||||||
try {
|
try {
|
||||||
$stmt = $con->prepare($sql);
|
$stmt = $con->prepare($sql);
|
||||||
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
|
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
|
||||||
|
@ -325,6 +329,35 @@ abstract class BaseCcShowInstancesQuery extends ModelCriteria
|
||||||
return $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId, $comparison);
|
return $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId, $comparison);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the query on the description column
|
||||||
|
*
|
||||||
|
* Example usage:
|
||||||
|
* <code>
|
||||||
|
* $query->filterByDbDescription('fooValue'); // WHERE description = 'fooValue'
|
||||||
|
* $query->filterByDbDescription('%fooValue%'); // WHERE description LIKE '%fooValue%'
|
||||||
|
* </code>
|
||||||
|
*
|
||||||
|
* @param string $dbDescription The value to use as filter.
|
||||||
|
* Accepts wildcards (* and % trigger a LIKE)
|
||||||
|
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||||
|
*
|
||||||
|
* @return CcShowInstancesQuery The current query, for fluid interface
|
||||||
|
*/
|
||||||
|
public function filterByDbDescription($dbDescription = null, $comparison = null)
|
||||||
|
{
|
||||||
|
if (null === $comparison) {
|
||||||
|
if (is_array($dbDescription)) {
|
||||||
|
$comparison = Criteria::IN;
|
||||||
|
} elseif (preg_match('/[\%\*]/', $dbDescription)) {
|
||||||
|
$dbDescription = str_replace('*', '%', $dbDescription);
|
||||||
|
$comparison = Criteria::LIKE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->addUsingAlias(CcShowInstancesPeer::DESCRIPTION, $dbDescription, $comparison);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the query on the starts column
|
* Filter the query on the starts column
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,13 +24,13 @@ abstract class BaseCcShowPeer
|
||||||
const TM_CLASS = 'CcShowTableMap';
|
const TM_CLASS = 'CcShowTableMap';
|
||||||
|
|
||||||
/** The total number of columns. */
|
/** The total number of columns. */
|
||||||
const NUM_COLUMNS = 13;
|
const NUM_COLUMNS = 14;
|
||||||
|
|
||||||
/** The number of lazy-loaded columns. */
|
/** The number of lazy-loaded columns. */
|
||||||
const NUM_LAZY_LOAD_COLUMNS = 0;
|
const NUM_LAZY_LOAD_COLUMNS = 0;
|
||||||
|
|
||||||
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
|
/** The number of columns to hydrate (NUM_COLUMNS - NUM_LAZY_LOAD_COLUMNS) */
|
||||||
const NUM_HYDRATE_COLUMNS = 13;
|
const NUM_HYDRATE_COLUMNS = 14;
|
||||||
|
|
||||||
/** the column name for the id field */
|
/** the column name for the id field */
|
||||||
const ID = 'cc_show.id';
|
const ID = 'cc_show.id';
|
||||||
|
@ -71,6 +71,9 @@ abstract class BaseCcShowPeer
|
||||||
/** the column name for the is_linkable field */
|
/** the column name for the is_linkable field */
|
||||||
const IS_LINKABLE = 'cc_show.is_linkable';
|
const IS_LINKABLE = 'cc_show.is_linkable';
|
||||||
|
|
||||||
|
/** the column name for the image_path field */
|
||||||
|
const IMAGE_PATH = 'cc_show.image_path';
|
||||||
|
|
||||||
/** The default string format for model objects of the related table **/
|
/** The default string format for model objects of the related table **/
|
||||||
const DEFAULT_STRING_FORMAT = 'YAML';
|
const DEFAULT_STRING_FORMAT = 'YAML';
|
||||||
|
|
||||||
|
@ -90,12 +93,12 @@ abstract class BaseCcShowPeer
|
||||||
* e.g. CcShowPeer::$fieldNames[CcShowPeer::TYPE_PHPNAME][0] = 'Id'
|
* e.g. CcShowPeer::$fieldNames[CcShowPeer::TYPE_PHPNAME][0] = 'Id'
|
||||||
*/
|
*/
|
||||||
protected static $fieldNames = array (
|
protected static $fieldNames = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', 'DbLinked', 'DbIsLinkable', ),
|
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbUrl', 'DbGenre', 'DbDescription', 'DbColor', 'DbBackgroundColor', 'DbLiveStreamUsingAirtimeAuth', 'DbLiveStreamUsingCustomAuth', 'DbLiveStreamUser', 'DbLiveStreamPass', 'DbLinked', 'DbIsLinkable', 'DbImagePath', ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', 'dbLinked', 'dbIsLinkable', ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbUrl', 'dbGenre', 'dbDescription', 'dbColor', 'dbBackgroundColor', 'dbLiveStreamUsingAirtimeAuth', 'dbLiveStreamUsingCustomAuth', 'dbLiveStreamUser', 'dbLiveStreamPass', 'dbLinked', 'dbIsLinkable', 'dbImagePath', ),
|
||||||
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID, CcShowPeer::NAME, CcShowPeer::URL, CcShowPeer::GENRE, CcShowPeer::DESCRIPTION, CcShowPeer::COLOR, CcShowPeer::BACKGROUND_COLOR, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, CcShowPeer::LIVE_STREAM_USER, CcShowPeer::LIVE_STREAM_PASS, CcShowPeer::LINKED, CcShowPeer::IS_LINKABLE, ),
|
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID, CcShowPeer::NAME, CcShowPeer::URL, CcShowPeer::GENRE, CcShowPeer::DESCRIPTION, CcShowPeer::COLOR, CcShowPeer::BACKGROUND_COLOR, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH, CcShowPeer::LIVE_STREAM_USER, CcShowPeer::LIVE_STREAM_PASS, CcShowPeer::LINKED, CcShowPeer::IS_LINKABLE, CcShowPeer::IMAGE_PATH, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', 'LINKED', 'IS_LINKABLE', ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'URL', 'GENRE', 'DESCRIPTION', 'COLOR', 'BACKGROUND_COLOR', 'LIVE_STREAM_USING_AIRTIME_AUTH', 'LIVE_STREAM_USING_CUSTOM_AUTH', 'LIVE_STREAM_USER', 'LIVE_STREAM_PASS', 'LINKED', 'IS_LINKABLE', 'IMAGE_PATH', ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', 'linked', 'is_linkable', ),
|
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'url', 'genre', 'description', 'color', 'background_color', 'live_stream_using_airtime_auth', 'live_stream_using_custom_auth', 'live_stream_user', 'live_stream_pass', 'linked', 'is_linkable', 'image_path', ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -105,12 +108,12 @@ abstract class BaseCcShowPeer
|
||||||
* e.g. CcShowPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
* e.g. CcShowPeer::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||||
*/
|
*/
|
||||||
protected static $fieldKeys = array (
|
protected static $fieldKeys = array (
|
||||||
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbLiveStreamUsingAirtimeAuth' => 7, 'DbLiveStreamUsingCustomAuth' => 8, 'DbLiveStreamUser' => 9, 'DbLiveStreamPass' => 10, 'DbLinked' => 11, 'DbIsLinkable' => 12, ),
|
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbUrl' => 2, 'DbGenre' => 3, 'DbDescription' => 4, 'DbColor' => 5, 'DbBackgroundColor' => 6, 'DbLiveStreamUsingAirtimeAuth' => 7, 'DbLiveStreamUsingCustomAuth' => 8, 'DbLiveStreamUser' => 9, 'DbLiveStreamPass' => 10, 'DbLinked' => 11, 'DbIsLinkable' => 12, 'DbImagePath' => 13, ),
|
||||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbLiveStreamUsingAirtimeAuth' => 7, 'dbLiveStreamUsingCustomAuth' => 8, 'dbLiveStreamUser' => 9, 'dbLiveStreamPass' => 10, 'dbLinked' => 11, 'dbIsLinkable' => 12, ),
|
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbUrl' => 2, 'dbGenre' => 3, 'dbDescription' => 4, 'dbColor' => 5, 'dbBackgroundColor' => 6, 'dbLiveStreamUsingAirtimeAuth' => 7, 'dbLiveStreamUsingCustomAuth' => 8, 'dbLiveStreamUser' => 9, 'dbLiveStreamPass' => 10, 'dbLinked' => 11, 'dbIsLinkable' => 12, 'dbImagePath' => 13, ),
|
||||||
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID => 0, CcShowPeer::NAME => 1, CcShowPeer::URL => 2, CcShowPeer::GENRE => 3, CcShowPeer::DESCRIPTION => 4, CcShowPeer::COLOR => 5, CcShowPeer::BACKGROUND_COLOR => 6, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH => 7, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH => 8, CcShowPeer::LIVE_STREAM_USER => 9, CcShowPeer::LIVE_STREAM_PASS => 10, CcShowPeer::LINKED => 11, CcShowPeer::IS_LINKABLE => 12, ),
|
BasePeer::TYPE_COLNAME => array (CcShowPeer::ID => 0, CcShowPeer::NAME => 1, CcShowPeer::URL => 2, CcShowPeer::GENRE => 3, CcShowPeer::DESCRIPTION => 4, CcShowPeer::COLOR => 5, CcShowPeer::BACKGROUND_COLOR => 6, CcShowPeer::LIVE_STREAM_USING_AIRTIME_AUTH => 7, CcShowPeer::LIVE_STREAM_USING_CUSTOM_AUTH => 8, CcShowPeer::LIVE_STREAM_USER => 9, CcShowPeer::LIVE_STREAM_PASS => 10, CcShowPeer::LINKED => 11, CcShowPeer::IS_LINKABLE => 12, CcShowPeer::IMAGE_PATH => 13, ),
|
||||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 7, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 8, 'LIVE_STREAM_USER' => 9, 'LIVE_STREAM_PASS' => 10, 'LINKED' => 11, 'IS_LINKABLE' => 12, ),
|
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'URL' => 2, 'GENRE' => 3, 'DESCRIPTION' => 4, 'COLOR' => 5, 'BACKGROUND_COLOR' => 6, 'LIVE_STREAM_USING_AIRTIME_AUTH' => 7, 'LIVE_STREAM_USING_CUSTOM_AUTH' => 8, 'LIVE_STREAM_USER' => 9, 'LIVE_STREAM_PASS' => 10, 'LINKED' => 11, 'IS_LINKABLE' => 12, 'IMAGE_PATH' => 13, ),
|
||||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'live_stream_using_airtime_auth' => 7, 'live_stream_using_custom_auth' => 8, 'live_stream_user' => 9, 'live_stream_pass' => 10, 'linked' => 11, 'is_linkable' => 12, ),
|
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'url' => 2, 'genre' => 3, 'description' => 4, 'color' => 5, 'background_color' => 6, 'live_stream_using_airtime_auth' => 7, 'live_stream_using_custom_auth' => 8, 'live_stream_user' => 9, 'live_stream_pass' => 10, 'linked' => 11, 'is_linkable' => 12, 'image_path' => 13, ),
|
||||||
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, )
|
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, )
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -197,6 +200,7 @@ abstract class BaseCcShowPeer
|
||||||
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_PASS);
|
$criteria->addSelectColumn(CcShowPeer::LIVE_STREAM_PASS);
|
||||||
$criteria->addSelectColumn(CcShowPeer::LINKED);
|
$criteria->addSelectColumn(CcShowPeer::LINKED);
|
||||||
$criteria->addSelectColumn(CcShowPeer::IS_LINKABLE);
|
$criteria->addSelectColumn(CcShowPeer::IS_LINKABLE);
|
||||||
|
$criteria->addSelectColumn(CcShowPeer::IMAGE_PATH);
|
||||||
} else {
|
} else {
|
||||||
$criteria->addSelectColumn($alias . '.id');
|
$criteria->addSelectColumn($alias . '.id');
|
||||||
$criteria->addSelectColumn($alias . '.name');
|
$criteria->addSelectColumn($alias . '.name');
|
||||||
|
@ -211,6 +215,7 @@ abstract class BaseCcShowPeer
|
||||||
$criteria->addSelectColumn($alias . '.live_stream_pass');
|
$criteria->addSelectColumn($alias . '.live_stream_pass');
|
||||||
$criteria->addSelectColumn($alias . '.linked');
|
$criteria->addSelectColumn($alias . '.linked');
|
||||||
$criteria->addSelectColumn($alias . '.is_linkable');
|
$criteria->addSelectColumn($alias . '.is_linkable');
|
||||||
|
$criteria->addSelectColumn($alias . '.image_path');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
* @method CcShowQuery orderByDbLiveStreamPass($order = Criteria::ASC) Order by the live_stream_pass column
|
* @method CcShowQuery orderByDbLiveStreamPass($order = Criteria::ASC) Order by the live_stream_pass column
|
||||||
* @method CcShowQuery orderByDbLinked($order = Criteria::ASC) Order by the linked column
|
* @method CcShowQuery orderByDbLinked($order = Criteria::ASC) Order by the linked column
|
||||||
* @method CcShowQuery orderByDbIsLinkable($order = Criteria::ASC) Order by the is_linkable column
|
* @method CcShowQuery orderByDbIsLinkable($order = Criteria::ASC) Order by the is_linkable column
|
||||||
|
* @method CcShowQuery orderByDbImagePath($order = Criteria::ASC) Order by the image_path column
|
||||||
*
|
*
|
||||||
* @method CcShowQuery groupByDbId() Group by the id column
|
* @method CcShowQuery groupByDbId() Group by the id column
|
||||||
* @method CcShowQuery groupByDbName() Group by the name column
|
* @method CcShowQuery groupByDbName() Group by the name column
|
||||||
|
@ -33,6 +34,7 @@
|
||||||
* @method CcShowQuery groupByDbLiveStreamPass() Group by the live_stream_pass column
|
* @method CcShowQuery groupByDbLiveStreamPass() Group by the live_stream_pass column
|
||||||
* @method CcShowQuery groupByDbLinked() Group by the linked column
|
* @method CcShowQuery groupByDbLinked() Group by the linked column
|
||||||
* @method CcShowQuery groupByDbIsLinkable() Group by the is_linkable column
|
* @method CcShowQuery groupByDbIsLinkable() Group by the is_linkable column
|
||||||
|
* @method CcShowQuery groupByDbImagePath() Group by the image_path column
|
||||||
*
|
*
|
||||||
* @method CcShowQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
|
* @method CcShowQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
|
||||||
* @method CcShowQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
* @method CcShowQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
||||||
|
@ -69,6 +71,7 @@
|
||||||
* @method CcShow findOneByDbLiveStreamPass(string $live_stream_pass) Return the first CcShow filtered by the live_stream_pass column
|
* @method CcShow findOneByDbLiveStreamPass(string $live_stream_pass) Return the first CcShow filtered by the live_stream_pass column
|
||||||
* @method CcShow findOneByDbLinked(boolean $linked) Return the first CcShow filtered by the linked column
|
* @method CcShow findOneByDbLinked(boolean $linked) Return the first CcShow filtered by the linked column
|
||||||
* @method CcShow findOneByDbIsLinkable(boolean $is_linkable) Return the first CcShow filtered by the is_linkable column
|
* @method CcShow findOneByDbIsLinkable(boolean $is_linkable) Return the first CcShow filtered by the is_linkable column
|
||||||
|
* @method CcShow findOneByDbImagePath(string $image_path) Return the first CcShow filtered by the image_path column
|
||||||
*
|
*
|
||||||
* @method array findByDbId(int $id) Return CcShow objects filtered by the id column
|
* @method array findByDbId(int $id) Return CcShow objects filtered by the id column
|
||||||
* @method array findByDbName(string $name) Return CcShow objects filtered by the name column
|
* @method array findByDbName(string $name) Return CcShow objects filtered by the name column
|
||||||
|
@ -83,6 +86,7 @@
|
||||||
* @method array findByDbLiveStreamPass(string $live_stream_pass) Return CcShow objects filtered by the live_stream_pass column
|
* @method array findByDbLiveStreamPass(string $live_stream_pass) Return CcShow objects filtered by the live_stream_pass column
|
||||||
* @method array findByDbLinked(boolean $linked) Return CcShow objects filtered by the linked column
|
* @method array findByDbLinked(boolean $linked) Return CcShow objects filtered by the linked column
|
||||||
* @method array findByDbIsLinkable(boolean $is_linkable) Return CcShow objects filtered by the is_linkable column
|
* @method array findByDbIsLinkable(boolean $is_linkable) Return CcShow objects filtered by the is_linkable column
|
||||||
|
* @method array findByDbImagePath(string $image_path) Return CcShow objects filtered by the image_path column
|
||||||
*
|
*
|
||||||
* @package propel.generator.airtime.om
|
* @package propel.generator.airtime.om
|
||||||
*/
|
*/
|
||||||
|
@ -190,7 +194,7 @@ abstract class BaseCcShowQuery extends ModelCriteria
|
||||||
*/
|
*/
|
||||||
protected function findPkSimple($key, $con)
|
protected function findPkSimple($key, $con)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT "id", "name", "url", "genre", "description", "color", "background_color", "live_stream_using_airtime_auth", "live_stream_using_custom_auth", "live_stream_user", "live_stream_pass", "linked", "is_linkable" FROM "cc_show" WHERE "id" = :p0';
|
$sql = 'SELECT "id", "name", "url", "genre", "description", "color", "background_color", "live_stream_using_airtime_auth", "live_stream_using_custom_auth", "live_stream_user", "live_stream_pass", "linked", "is_linkable", "image_path" FROM "cc_show" WHERE "id" = :p0';
|
||||||
try {
|
try {
|
||||||
$stmt = $con->prepare($sql);
|
$stmt = $con->prepare($sql);
|
||||||
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
|
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
|
||||||
|
@ -661,6 +665,35 @@ abstract class BaseCcShowQuery extends ModelCriteria
|
||||||
return $this->addUsingAlias(CcShowPeer::IS_LINKABLE, $dbIsLinkable, $comparison);
|
return $this->addUsingAlias(CcShowPeer::IS_LINKABLE, $dbIsLinkable, $comparison);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filter the query on the image_path column
|
||||||
|
*
|
||||||
|
* Example usage:
|
||||||
|
* <code>
|
||||||
|
* $query->filterByDbImagePath('fooValue'); // WHERE image_path = 'fooValue'
|
||||||
|
* $query->filterByDbImagePath('%fooValue%'); // WHERE image_path LIKE '%fooValue%'
|
||||||
|
* </code>
|
||||||
|
*
|
||||||
|
* @param string $dbImagePath The value to use as filter.
|
||||||
|
* Accepts wildcards (* and % trigger a LIKE)
|
||||||
|
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||||
|
*
|
||||||
|
* @return CcShowQuery The current query, for fluid interface
|
||||||
|
*/
|
||||||
|
public function filterByDbImagePath($dbImagePath = null, $comparison = null)
|
||||||
|
{
|
||||||
|
if (null === $comparison) {
|
||||||
|
if (is_array($dbImagePath)) {
|
||||||
|
$comparison = Criteria::IN;
|
||||||
|
} elseif (preg_match('/[\%\*]/', $dbImagePath)) {
|
||||||
|
$dbImagePath = str_replace('*', '%', $dbImagePath);
|
||||||
|
$comparison = Criteria::LIKE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->addUsingAlias(CcShowPeer::IMAGE_PATH, $dbImagePath, $comparison);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter the query by a related CcShowInstances object
|
* Filter the query by a related CcShowInstances object
|
||||||
*
|
*
|
||||||
|
|
|
@ -144,29 +144,24 @@ DROP TABLE IF EXISTS "cc_show" CASCADE;
|
||||||
|
|
||||||
CREATE TABLE "cc_show"
|
CREATE TABLE "cc_show"
|
||||||
(
|
(
|
||||||
"id" serial NOT NULL,
|
"id" serial NOT NULL,
|
||||||
"name" VARCHAR(255) default '' NOT NULL,
|
"name" VARCHAR(255) DEFAULT '' NOT NULL,
|
||||||
"url" VARCHAR(255) default '',
|
"url" VARCHAR(255) DEFAULT '',
|
||||||
"genre" VARCHAR(255) default '',
|
"genre" VARCHAR(255) DEFAULT '',
|
||||||
"description" VARCHAR(512),
|
"description" VARCHAR(512),
|
||||||
"color" VARCHAR(6),
|
"color" VARCHAR(6),
|
||||||
"background_color" VARCHAR(6),
|
"background_color" VARCHAR(6),
|
||||||
"live_stream_using_airtime_auth" BOOLEAN default 'f',
|
"live_stream_using_airtime_auth" BOOLEAN DEFAULT 'f',
|
||||||
"live_stream_using_custom_auth" BOOLEAN default 'f',
|
"live_stream_using_custom_auth" BOOLEAN DEFAULT 'f',
|
||||||
"live_stream_user" VARCHAR(255),
|
"live_stream_user" VARCHAR(255),
|
||||||
"live_stream_pass" VARCHAR(255),
|
"live_stream_pass" VARCHAR(255),
|
||||||
"linked" BOOLEAN default 'f' NOT NULL,
|
"linked" BOOLEAN DEFAULT 'f' NOT NULL,
|
||||||
"is_linkable" BOOLEAN default 't' NOT NULL,
|
"is_linkable" BOOLEAN DEFAULT 't' NOT NULL,
|
||||||
"image_path" VARCHAR(255),
|
"image_path" VARCHAR(255) DEFAULT '',
|
||||||
PRIMARY KEY ("id")
|
PRIMARY KEY ("id")
|
||||||
);
|
);
|
||||||
|
|
||||||
COMMENT ON TABLE "cc_show" IS '';
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
SET search_path TO public;
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
-- cc_show_instances
|
-- cc_show_instances
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -174,28 +169,23 @@ DROP TABLE IF EXISTS "cc_show_instances" CASCADE;
|
||||||
|
|
||||||
CREATE TABLE "cc_show_instances"
|
CREATE TABLE "cc_show_instances"
|
||||||
(
|
(
|
||||||
"id" serial NOT NULL,
|
"id" serial NOT NULL,
|
||||||
"description" VARCHAR(512),
|
"description" VARCHAR(512) DEFAULT '',
|
||||||
"starts" TIMESTAMP NOT NULL,
|
"starts" TIMESTAMP NOT NULL,
|
||||||
"ends" TIMESTAMP NOT NULL,
|
"ends" TIMESTAMP NOT NULL,
|
||||||
"show_id" INTEGER NOT NULL,
|
"show_id" INTEGER NOT NULL,
|
||||||
"record" INT2 default 0,
|
"record" INT2 DEFAULT 0,
|
||||||
"rebroadcast" INT2 default 0,
|
"rebroadcast" INT2 DEFAULT 0,
|
||||||
"instance_id" INTEGER,
|
"instance_id" INTEGER,
|
||||||
"file_id" INTEGER,
|
"file_id" INTEGER,
|
||||||
"time_filled" interval default '00:00:00',
|
"time_filled" interval DEFAULT '00:00:00',
|
||||||
"created" TIMESTAMP NOT NULL,
|
"created" TIMESTAMP NOT NULL,
|
||||||
"last_scheduled" TIMESTAMP,
|
"last_scheduled" TIMESTAMP,
|
||||||
"modified_instance" BOOLEAN default 'f' NOT NULL,
|
"modified_instance" BOOLEAN DEFAULT 'f' NOT NULL,
|
||||||
PRIMARY KEY ("id")
|
PRIMARY KEY ("id")
|
||||||
);
|
);
|
||||||
|
|
||||||
COMMENT ON TABLE "cc_show_instances" IS '';
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
SET search_path TO public;
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
-- cc_show_days
|
-- cc_show_days
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -617,25 +607,6 @@ CREATE TABLE "cc_listener_count"
|
||||||
);
|
);
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
DROP TABLE IF EXISTS "cc_locale" CASCADE;
|
|
||||||
|
|
||||||
CREATE TABLE "cc_locale"
|
|
||||||
(
|
|
||||||
"id" serial NOT NULL,
|
|
||||||
"locale_code" VARCHAR(16) NOT NULL,
|
|
||||||
"locale_lang" VARCHAR(128) NOT NULL,
|
|
||||||
PRIMARY KEY ("id")
|
|
||||||
);
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
|
||||||
|
|
||||||
COMMENT ON TABLE "cc_listener_count" IS '';
|
|
||||||
|
|
||||||
|
|
||||||
SET search_path TO public;
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
-- cc_playout_history
|
-- cc_playout_history
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue