Auto generated schema file updates

This commit is contained in:
Duncan Sommerville 2014-09-19 13:03:09 -04:00
parent 0789de9392
commit 9952c2b58f
4 changed files with 147 additions and 67 deletions

View File

@ -39,6 +39,7 @@ class CcShowInstancesTableMap extends TableMap {
$this->setPrimaryKeyMethodInfo('cc_show_instances_id_seq');
// columns
$this->addPrimaryKey('ID', 'DbId', 'INTEGER', true, null, null);
$this->addColumn('DESCRIPTION', 'DbDescription', 'VARCHAR', false, 512, null);
$this->addColumn('STARTS', 'DbStarts', 'TIMESTAMP', true, null, null);
$this->addColumn('ENDS', 'DbEnds', 'TIMESTAMP', true, null, null);
$this->addForeignKey('SHOW_ID', 'DbShowId', 'INTEGER', 'cc_show', 'ID', true, null, null);

View File

@ -30,6 +30,12 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
*/
protected $id;
/**
* The value for the description field.
* @var string
*/
protected $description;
/**
* The value for the starts field.
* @var string
@ -178,6 +184,16 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
return $this->id;
}
/**
* Get the [description] column value.
*
* @return string
*/
public function getDbDescription()
{
return $this->description;
}
/**
* Get the [optionally formatted] temporal [starts] column value.
*
@ -400,6 +416,26 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
return $this;
} // 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) {
$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.
*
@ -797,17 +833,18 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
try {
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
$this->starts = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
$this->ends = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
$this->show_id = ($row[$startcol + 3] !== null) ? (int) $row[$startcol + 3] : null;
$this->record = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
$this->rebroadcast = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
$this->instance_id = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
$this->file_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
$this->time_filled = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null;
$this->created = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
$this->last_scheduled = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
$this->modified_instance = ($row[$startcol + 11] !== null) ? (boolean) $row[$startcol + 11] : null;
$this->description = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
$this->starts = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
$this->ends = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
$this->show_id = ($row[$startcol + 4] !== null) ? (int) $row[$startcol + 4] : null;
$this->record = ($row[$startcol + 5] !== null) ? (int) $row[$startcol + 5] : null;
$this->rebroadcast = ($row[$startcol + 6] !== null) ? (int) $row[$startcol + 6] : null;
$this->instance_id = ($row[$startcol + 7] !== null) ? (int) $row[$startcol + 7] : null;
$this->file_id = ($row[$startcol + 8] !== null) ? (int) $row[$startcol + 8] : null;
$this->time_filled = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
$this->created = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : 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->setNew(false);
@ -816,7 +853,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$this->ensureConsistency();
}
return $startcol + 12; // 12 = CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 13; // 13 = CcShowInstancesPeer::NUM_COLUMNS - CcShowInstancesPeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating CcShowInstances object", $e);
@ -1235,36 +1272,39 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
return $this->getDbId();
break;
case 1:
return $this->getDbStarts();
return $this->getDbDescription();
break;
case 2:
return $this->getDbEnds();
return $this->getDbStarts();
break;
case 3:
return $this->getDbShowId();
return $this->getDbEnds();
break;
case 4:
return $this->getDbRecord();
return $this->getDbShowId();
break;
case 5:
return $this->getDbRebroadcast();
return $this->getDbRecord();
break;
case 6:
return $this->getDbOriginalShow();
return $this->getDbRebroadcast();
break;
case 7:
return $this->getDbRecordedFile();
return $this->getDbOriginalShow();
break;
case 8:
return $this->getDbTimeFilled();
return $this->getDbRecordedFile();
break;
case 9:
return $this->getDbCreated();
return $this->getDbTimeFilled();
break;
case 10:
return $this->getDbLastScheduled();
return $this->getDbCreated();
break;
case 11:
return $this->getDbLastScheduled();
break;
case 12:
return $this->getDbModifiedInstance();
break;
default:
@ -1292,17 +1332,18 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$keys = CcShowInstancesPeer::getFieldNames($keyType);
$result = array(
$keys[0] => $this->getDbId(),
$keys[1] => $this->getDbStarts(),
$keys[2] => $this->getDbEnds(),
$keys[3] => $this->getDbShowId(),
$keys[4] => $this->getDbRecord(),
$keys[5] => $this->getDbRebroadcast(),
$keys[6] => $this->getDbOriginalShow(),
$keys[7] => $this->getDbRecordedFile(),
$keys[8] => $this->getDbTimeFilled(),
$keys[9] => $this->getDbCreated(),
$keys[10] => $this->getDbLastScheduled(),
$keys[11] => $this->getDbModifiedInstance(),
$keys[1] => $this->getDbDescription(),
$keys[2] => $this->getDbStarts(),
$keys[3] => $this->getDbEnds(),
$keys[4] => $this->getDbShowId(),
$keys[5] => $this->getDbRecord(),
$keys[6] => $this->getDbRebroadcast(),
$keys[7] => $this->getDbOriginalShow(),
$keys[8] => $this->getDbRecordedFile(),
$keys[9] => $this->getDbTimeFilled(),
$keys[10] => $this->getDbCreated(),
$keys[11] => $this->getDbLastScheduled(),
$keys[12] => $this->getDbModifiedInstance(),
);
if ($includeForeignObjects) {
if (null !== $this->aCcShow) {
@ -1349,36 +1390,39 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$this->setDbId($value);
break;
case 1:
$this->setDbStarts($value);
$this->setDbDescription($value);
break;
case 2:
$this->setDbEnds($value);
$this->setDbStarts($value);
break;
case 3:
$this->setDbShowId($value);
$this->setDbEnds($value);
break;
case 4:
$this->setDbRecord($value);
$this->setDbShowId($value);
break;
case 5:
$this->setDbRebroadcast($value);
$this->setDbRecord($value);
break;
case 6:
$this->setDbOriginalShow($value);
$this->setDbRebroadcast($value);
break;
case 7:
$this->setDbRecordedFile($value);
$this->setDbOriginalShow($value);
break;
case 8:
$this->setDbTimeFilled($value);
$this->setDbRecordedFile($value);
break;
case 9:
$this->setDbCreated($value);
$this->setDbTimeFilled($value);
break;
case 10:
$this->setDbLastScheduled($value);
$this->setDbCreated($value);
break;
case 11:
$this->setDbLastScheduled($value);
break;
case 12:
$this->setDbModifiedInstance($value);
break;
} // switch()
@ -1406,17 +1450,18 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$keys = CcShowInstancesPeer::getFieldNames($keyType);
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[2], $arr)) $this->setDbEnds($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDbShowId($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDbRecord($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setDbRebroadcast($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setDbOriginalShow($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setDbRecordedFile($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setDbTimeFilled($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setDbCreated($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setDbLastScheduled($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setDbModifiedInstance($arr[$keys[11]]);
if (array_key_exists($keys[1], $arr)) $this->setDbDescription($arr[$keys[1]]);
if (array_key_exists($keys[2], $arr)) $this->setDbStarts($arr[$keys[2]]);
if (array_key_exists($keys[3], $arr)) $this->setDbEnds($arr[$keys[3]]);
if (array_key_exists($keys[4], $arr)) $this->setDbShowId($arr[$keys[4]]);
if (array_key_exists($keys[5], $arr)) $this->setDbRecord($arr[$keys[5]]);
if (array_key_exists($keys[6], $arr)) $this->setDbRebroadcast($arr[$keys[6]]);
if (array_key_exists($keys[7], $arr)) $this->setDbOriginalShow($arr[$keys[7]]);
if (array_key_exists($keys[8], $arr)) $this->setDbRecordedFile($arr[$keys[8]]);
if (array_key_exists($keys[9], $arr)) $this->setDbTimeFilled($arr[$keys[9]]);
if (array_key_exists($keys[10], $arr)) $this->setDbCreated($arr[$keys[10]]);
if (array_key_exists($keys[11], $arr)) $this->setDbLastScheduled($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDbModifiedInstance($arr[$keys[12]]);
}
/**
@ -1429,6 +1474,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$criteria = new Criteria(CcShowInstancesPeer::DATABASE_NAME);
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::ENDS)) $criteria->add(CcShowInstancesPeer::ENDS, $this->ends);
if ($this->isColumnModified(CcShowInstancesPeer::SHOW_ID)) $criteria->add(CcShowInstancesPeer::SHOW_ID, $this->show_id);
@ -1501,6 +1547,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
*/
public function copyInto($copyObj, $deepCopy = false)
{
$copyObj->setDbDescription($this->description);
$copyObj->setDbStarts($this->starts);
$copyObj->setDbEnds($this->ends);
$copyObj->setDbShowId($this->show_id);
@ -2186,6 +2233,7 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
public function clear()
{
$this->id = null;
$this->description = null;
$this->starts = null;
$this->ends = null;
$this->show_id = null;

View File

@ -26,7 +26,7 @@ abstract class BaseCcShowInstancesPeer {
const TM_CLASS = 'CcShowInstancesTableMap';
/** The total number of columns. */
const NUM_COLUMNS = 12;
const NUM_COLUMNS = 13;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@ -34,6 +34,9 @@ abstract class BaseCcShowInstancesPeer {
/** the column name for the ID field */
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 */
const STARTS = 'cc_show_instances.STARTS';
@ -83,12 +86,12 @@ abstract class BaseCcShowInstancesPeer {
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('DbId', '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_COLNAME => array (self::ID, self::STARTS, self::ENDS, self::SHOW_ID, self::RECORD, self::REBROADCAST, self::INSTANCE_ID, self::FILE_ID, self::TIME_FILLED, self::CREATED, self::LAST_SCHEDULED, self::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_FIELDNAME => array ('id', '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_PHPNAME => array ('DbId', 'DbDescription', '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 (self::ID, self::DESCRIPTION, self::STARTS, self::ENDS, self::SHOW_ID, self::RECORD, self::REBROADCAST, self::INSTANCE_ID, self::FILE_ID, self::TIME_FILLED, self::CREATED, self::LAST_SCHEDULED, self::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', '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, 12, )
);
/**
@ -98,12 +101,12 @@ abstract class BaseCcShowInstancesPeer {
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private 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_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_COLNAME => array (self::ID => 0, self::STARTS => 1, self::ENDS => 2, self::SHOW_ID => 3, self::RECORD => 4, self::REBROADCAST => 5, self::INSTANCE_ID => 6, self::FILE_ID => 7, self::TIME_FILLED => 8, self::CREATED => 9, self::LAST_SCHEDULED => 10, self::MODIFIED_INSTANCE => 11, ),
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_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_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 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, '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 (self::ID => 0, self::DESCRIPTION => 1, self::STARTS => 2, self::ENDS => 3, self::SHOW_ID => 4, self::RECORD => 5, self::REBROADCAST => 6, self::INSTANCE_ID => 7, self::FILE_ID => 8, self::TIME_FILLED => 9, self::CREATED => 10, self::LAST_SCHEDULED => 11, self::MODIFIED_INSTANCE => 12, ),
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, '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, 12, )
);
/**
@ -176,6 +179,7 @@ abstract class BaseCcShowInstancesPeer {
{
if (null === $alias) {
$criteria->addSelectColumn(CcShowInstancesPeer::ID);
$criteria->addSelectColumn(CcShowInstancesPeer::DESCRIPTION);
$criteria->addSelectColumn(CcShowInstancesPeer::STARTS);
$criteria->addSelectColumn(CcShowInstancesPeer::ENDS);
$criteria->addSelectColumn(CcShowInstancesPeer::SHOW_ID);
@ -189,6 +193,7 @@ abstract class BaseCcShowInstancesPeer {
$criteria->addSelectColumn(CcShowInstancesPeer::MODIFIED_INSTANCE);
} else {
$criteria->addSelectColumn($alias . '.ID');
$criteria->addSelectColumn($alias . '.DESCRIPTION');
$criteria->addSelectColumn($alias . '.STARTS');
$criteria->addSelectColumn($alias . '.ENDS');
$criteria->addSelectColumn($alias . '.SHOW_ID');

View File

@ -7,6 +7,7 @@
*
*
* @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 orderByDbEnds($order = Criteria::ASC) Order by the ends 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 groupByDbId() Group by the id column
* @method CcShowInstancesQuery groupByDbDescription() Group by the description column
* @method CcShowInstancesQuery groupByDbStarts() Group by the starts column
* @method CcShowInstancesQuery groupByDbEnds() Group by the ends column
* @method CcShowInstancesQuery groupByDbShowId() Group by the show_id column
@ -64,6 +66,7 @@
* @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 findOneByDbId(int $id) Return the first CcShowInstances filtered by the id column
* @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 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
@ -77,6 +80,7 @@
* @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 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 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
@ -214,6 +218,28 @@ abstract class BaseCcShowInstancesQuery extends ModelCriteria
return $this->addUsingAlias(CcShowInstancesPeer::ID, $dbId, $comparison);
}
/**
* Filter the query on the description column
*
* @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
*