CC-4961: Show linking

Removed stamp tables
This commit is contained in:
denise 2013-04-12 10:52:13 -04:00
parent 9b2fb3bece
commit 9b4a0ba9c1
43 changed files with 55 additions and 10288 deletions

View file

@ -204,18 +204,4 @@ return array (
'BaseCcLocalePeer' => 'airtime/om/BaseCcLocalePeer.php',
'BaseCcLocale' => 'airtime/om/BaseCcLocale.php',
'BaseCcLocaleQuery' => 'airtime/om/BaseCcLocaleQuery.php',
'CcStampContentsTableMap' => 'airtime/map/CcStampContentsTableMap.php',
'CcStampContentsPeer' => 'airtime/CcStampContentsPeer.php',
'CcStampContents' => 'airtime/CcStampContents.php',
'CcStampContentsQuery' => 'airtime/CcStampContentsQuery.php',
'BaseCcStampContentsPeer' => 'airtime/om/BaseCcStampContentsPeer.php',
'BaseCcStampContents' => 'airtime/om/BaseCcStampContents.php',
'BaseCcStampContentsQuery' => 'airtime/om/BaseCcStampContentsQuery.php',
'CcStampTableMap' => 'airtime/map/CcStampTableMap.php',
'CcStampPeer' => 'airtime/CcStampPeer.php',
'CcStamp' => 'airtime/CcStamp.php',
'CcStampQuery' => 'airtime/CcStampQuery.php',
'BaseCcStampPeer' => 'airtime/om/BaseCcStampPeer.php',
'BaseCcStamp' => 'airtime/om/BaseCcStamp.php',
'BaseCcStampQuery' => 'airtime/om/BaseCcStampQuery.php',
);

View file

@ -1,18 +0,0 @@
<?php
/**
* Skeleton subclass for representing a row from the 'cc_stamp' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcStamp extends BaseCcStamp {
} // CcStamp

View file

@ -1,18 +0,0 @@
<?php
/**
* Skeleton subclass for representing a row from the 'cc_stamp_contents' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcStampContents extends BaseCcStampContents {
} // CcStampContents

View file

@ -1,18 +0,0 @@
<?php
/**
* Skeleton subclass for performing query and update operations on the 'cc_stamp_contents' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcStampContentsPeer extends BaseCcStampContentsPeer {
} // CcStampContentsPeer

View file

@ -1,18 +0,0 @@
<?php
/**
* Skeleton subclass for performing query and update operations on the 'cc_stamp_contents' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcStampContentsQuery extends BaseCcStampContentsQuery {
} // CcStampContentsQuery

View file

@ -1,18 +0,0 @@
<?php
/**
* Skeleton subclass for performing query and update operations on the 'cc_stamp' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcStampPeer extends BaseCcStampPeer {
} // CcStampPeer

View file

@ -1,18 +0,0 @@
<?php
/**
* Skeleton subclass for performing query and update operations on the 'cc_stamp' table.
*
*
*
* You should add additional methods to this class to meet the
* application requirements. This class will only be generated as
* long as it does not already exist in the output directory.
*
* @package propel.generator.airtime
*/
class CcStampQuery extends BaseCcStampQuery {
} // CcStampQuery

View file

@ -58,7 +58,6 @@ class CcBlockTableMap extends TableMap {
$this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null);
$this->addRelation('CcBlockcontents', 'CcBlockcontents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null);
$this->addRelation('CcBlockcriteria', 'CcBlockcriteria', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null);
$this->addRelation('CcStampContents', 'CcStampContents', RelationMap::ONE_TO_MANY, array('id' => 'block_id', ), 'CASCADE', null);
} // buildRelations()
/**

View file

@ -123,7 +123,6 @@ class CcFilesTableMap extends TableMap {
$this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
$this->addRelation('CcBlockcontents', 'CcBlockcontents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
$this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
$this->addRelation('CcStampContents', 'CcStampContents', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
} // buildRelations()
} // CcFilesTableMap

View file

@ -55,7 +55,6 @@ class CcPlaylistTableMap extends TableMap {
{
$this->addRelation('CcSubjs', 'CcSubjs', RelationMap::MANY_TO_ONE, array('creator_id' => 'id', ), 'CASCADE', null);
$this->addRelation('CcPlaylistcontents', 'CcPlaylistcontents', RelationMap::ONE_TO_MANY, array('id' => 'playlist_id', ), 'CASCADE', null);
$this->addRelation('CcStampContents', 'CcStampContents', RelationMap::ONE_TO_MANY, array('id' => 'playlist_id', ), 'CASCADE', null);
} // buildRelations()
/**

View file

@ -52,8 +52,7 @@ class CcScheduleTableMap extends TableMap {
$this->addForeignKey('INSTANCE_ID', 'DbInstanceId', 'INTEGER', 'cc_show_instances', 'ID', true, null, null);
$this->addColumn('PLAYOUT_STATUS', 'DbPlayoutStatus', 'SMALLINT', true, null, 1);
$this->addColumn('BROADCASTED', 'DbBroadcasted', 'SMALLINT', true, null, 0);
$this->addColumn('STAMP_ID', 'DbStampId', 'INTEGER', true, null, 0);
$this->addColumn('STAMP_CONTENT_ID', 'DbStampContentId', 'INTEGER', true, null, 0);
$this->addColumn('POSITION', 'DbPosition', 'INTEGER', true, null, 0);
// validators
} // initialize()

View file

@ -63,7 +63,6 @@ class CcShowInstancesTableMap extends TableMap {
$this->addRelation('CcFiles', 'CcFiles', RelationMap::MANY_TO_ONE, array('file_id' => 'id', ), 'CASCADE', null);
$this->addRelation('CcShowInstancesRelatedByDbId', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null);
$this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null);
$this->addRelation('CcStamp', 'CcStamp', RelationMap::ONE_TO_MANY, array('id' => 'instance_id', ), 'CASCADE', null);
} // buildRelations()
} // CcShowInstancesTableMap

View file

@ -62,7 +62,6 @@ class CcShowTableMap extends TableMap {
$this->addRelation('CcShowDays', 'CcShowDays', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
$this->addRelation('CcShowRebroadcast', 'CcShowRebroadcast', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
$this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
$this->addRelation('CcStamp', 'CcStamp', RelationMap::ONE_TO_MANY, array('id' => 'show_id', ), 'CASCADE', null);
} // buildRelations()
} // CcShowTableMap

View file

@ -57,7 +57,6 @@ class CcWebstreamTableMap extends TableMap {
public function buildRelations()
{
$this->addRelation('CcSchedule', 'CcSchedule', RelationMap::ONE_TO_MANY, array('id' => 'stream_id', ), 'CASCADE', null);
$this->addRelation('CcStampContents', 'CcStampContents', RelationMap::ONE_TO_MANY, array('id' => 'stream_id', ), 'CASCADE', null);
} // buildRelations()
} // CcWebstreamTableMap

View file

@ -95,11 +95,6 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
*/
protected $collCcBlockcriterias;
/**
* @var array CcStampContents[] Collection to store aggregation of CcStampContents objects.
*/
protected $collCcStampContentss;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@ -617,8 +612,6 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
$this->collCcBlockcriterias = null;
$this->collCcStampContentss = null;
} // if (deep)
}
@ -788,14 +781,6 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
@ -903,14 +888,6 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
@ -1203,12 +1180,6 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
}
}
foreach ($this->getCcStampContentss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcStampContents($relObj->copy($deepCopy));
}
}
} // if ($deepCopy)
@ -1705,215 +1676,6 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
}
}
/**
* Clears out the collCcStampContentss collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcStampContentss()
*/
public function clearCcStampContentss()
{
$this->collCcStampContentss = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcStampContentss collection.
*
* By default this just sets the collCcStampContentss collection to an empty array (like clearcollCcStampContentss());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcStampContentss()
{
$this->collCcStampContentss = new PropelObjectCollection();
$this->collCcStampContentss->setModel('CcStampContents');
}
/**
* Gets an array of CcStampContents objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcBlock is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
* @throws PropelException
*/
public function getCcStampContentss($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
// return empty collection
$this->initCcStampContentss();
} else {
$collCcStampContentss = CcStampContentsQuery::create(null, $criteria)
->filterByCcBlock($this)
->find($con);
if (null !== $criteria) {
return $collCcStampContentss;
}
$this->collCcStampContentss = $collCcStampContentss;
}
}
return $this->collCcStampContentss;
}
/**
* Returns the number of related CcStampContents objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcStampContents objects.
* @throws PropelException
*/
public function countCcStampContentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
return 0;
} else {
$query = CcStampContentsQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcBlock($this)
->count($con);
}
} else {
return count($this->collCcStampContentss);
}
}
/**
* Method called to associate a CcStampContents object to this object
* through the CcStampContents foreign key attribute.
*
* @param CcStampContents $l CcStampContents
* @return void
* @throws PropelException
*/
public function addCcStampContents(CcStampContents $l)
{
if ($this->collCcStampContentss === null) {
$this->initCcStampContentss();
}
if (!$this->collCcStampContentss->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcStampContentss[]= $l;
$l->setCcBlock($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcBlock is new, it will return
* an empty collection; or if this CcBlock has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcBlock.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcStamp($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcStamp', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcBlock is new, it will return
* an empty collection; or if this CcBlock has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcBlock.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcFiles', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcBlock is new, it will return
* an empty collection; or if this CcBlock has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcBlock.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcWebstream', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcBlock is new, it will return
* an empty collection; or if this CcBlock has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcBlock.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcPlaylist', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* Clears the current object and sets all attributes to their default values
*/
@ -1963,17 +1725,11 @@ abstract class BaseCcBlock extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcStampContentss) {
foreach ((array) $this->collCcStampContentss as $o) {
$o->clearAllReferences($deep);
}
}
} // if ($deep)
$this->collCcPlaylistcontentss = null;
$this->collCcBlockcontentss = null;
$this->collCcBlockcriterias = null;
$this->collCcStampContentss = null;
$this->aCcSubjs = null;
}

View file

@ -382,9 +382,6 @@ abstract class BaseCcBlockPeer {
// Invalidate objects in CcBlockcriteriaPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcBlockcriteriaPeer::clearInstancePool();
// Invalidate objects in CcStampContentsPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcStampContentsPeer::clearInstancePool();
}
/**

View file

@ -44,10 +44,6 @@
* @method CcBlockQuery rightJoinCcBlockcriteria($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlockcriteria relation
* @method CcBlockQuery innerJoinCcBlockcriteria($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlockcriteria relation
*
* @method CcBlockQuery leftJoinCcStampContents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStampContents relation
* @method CcBlockQuery rightJoinCcStampContents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStampContents relation
* @method CcBlockQuery innerJoinCcStampContents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStampContents relation
*
* @method CcBlock findOne(PropelPDO $con = null) Return the first CcBlock matching the query
* @method CcBlock findOneOrCreate(PropelPDO $con = null) Return the first CcBlock matching the query, or a new CcBlock object populated from the query conditions when no match is found
*
@ -631,70 +627,6 @@ abstract class BaseCcBlockQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CcBlockcriteria', 'CcBlockcriteriaQuery');
}
/**
* Filter the query by a related CcStampContents object
*
* @param CcStampContents $ccStampContents the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcBlockQuery The current query, for fluid interface
*/
public function filterByCcStampContents($ccStampContents, $comparison = null)
{
return $this
->addUsingAlias(CcBlockPeer::ID, $ccStampContents->getDbBlockId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStampContents relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcBlockQuery The current query, for fluid interface
*/
public function joinCcStampContents($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStampContents');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStampContents');
}
return $this;
}
/**
* Use the CcStampContents relation CcStampContents object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery A secondary query class using the current class as primary query
*/
public function useCcStampContentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcStampContents($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStampContents', 'CcStampContentsQuery');
}
/**
* Exclude object from result
*

View file

@ -493,11 +493,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
*/
protected $collCcSchedules;
/**
* @var array CcStampContents[] Collection to store aggregation of CcStampContents objects.
*/
protected $collCcStampContentss;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@ -3114,8 +3109,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$this->collCcSchedules = null;
$this->collCcStampContentss = null;
} // if (deep)
}
@ -3307,14 +3300,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
@ -3442,14 +3427,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
@ -4374,12 +4351,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
}
}
foreach ($this->getCcStampContentss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcStampContents($relObj->copy($deepCopy));
}
}
} // if ($deepCopy)
@ -5183,215 +5154,6 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
return $this->getCcSchedules($query, $con);
}
/**
* Clears out the collCcStampContentss collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcStampContentss()
*/
public function clearCcStampContentss()
{
$this->collCcStampContentss = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcStampContentss collection.
*
* By default this just sets the collCcStampContentss collection to an empty array (like clearcollCcStampContentss());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcStampContentss()
{
$this->collCcStampContentss = new PropelObjectCollection();
$this->collCcStampContentss->setModel('CcStampContents');
}
/**
* Gets an array of CcStampContents objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcFiles is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
* @throws PropelException
*/
public function getCcStampContentss($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
// return empty collection
$this->initCcStampContentss();
} else {
$collCcStampContentss = CcStampContentsQuery::create(null, $criteria)
->filterByCcFiles($this)
->find($con);
if (null !== $criteria) {
return $collCcStampContentss;
}
$this->collCcStampContentss = $collCcStampContentss;
}
}
return $this->collCcStampContentss;
}
/**
* Returns the number of related CcStampContents objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcStampContents objects.
* @throws PropelException
*/
public function countCcStampContentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
return 0;
} else {
$query = CcStampContentsQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcFiles($this)
->count($con);
}
} else {
return count($this->collCcStampContentss);
}
}
/**
* Method called to associate a CcStampContents object to this object
* through the CcStampContents foreign key attribute.
*
* @param CcStampContents $l CcStampContents
* @return void
* @throws PropelException
*/
public function addCcStampContents(CcStampContents $l)
{
if ($this->collCcStampContentss === null) {
$this->initCcStampContentss();
}
if (!$this->collCcStampContentss->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcStampContentss[]= $l;
$l->setCcFiles($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcFiles is new, it will return
* an empty collection; or if this CcFiles has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcFiles.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcStamp($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcStamp', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcFiles is new, it will return
* an empty collection; or if this CcFiles has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcFiles.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcWebstream', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcFiles is new, it will return
* an empty collection; or if this CcFiles has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcFiles.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcBlock', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcFiles is new, it will return
* an empty collection; or if this CcFiles has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcFiles.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcPlaylist', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* Clears the current object and sets all attributes to their default values
*/
@ -5508,18 +5270,12 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcStampContentss) {
foreach ((array) $this->collCcStampContentss as $o) {
$o->clearAllReferences($deep);
}
}
} // if ($deep)
$this->collCcShowInstancess = null;
$this->collCcPlaylistcontentss = null;
$this->collCcBlockcontentss = null;
$this->collCcSchedules = null;
$this->collCcStampContentss = null;
$this->aFkOwner = null;
$this->aCcSubjsRelatedByDbEditedby = null;
$this->aCcMusicDirs = null;

View file

@ -695,9 +695,6 @@ abstract class BaseCcFilesPeer {
// Invalidate objects in CcSchedulePeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcSchedulePeer::clearInstancePool();
// Invalidate objects in CcStampContentsPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcStampContentsPeer::clearInstancePool();
}
/**

View file

@ -180,10 +180,6 @@
* @method CcFilesQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation
* @method CcFilesQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation
*
* @method CcFilesQuery leftJoinCcStampContents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStampContents relation
* @method CcFilesQuery rightJoinCcStampContents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStampContents relation
* @method CcFilesQuery innerJoinCcStampContents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStampContents relation
*
* @method CcFiles findOne(PropelPDO $con = null) Return the first CcFiles matching the query
* @method CcFiles findOneOrCreate(PropelPDO $con = null) Return the first CcFiles matching the query, or a new CcFiles object populated from the query conditions when no match is found
*
@ -2539,70 +2535,6 @@ abstract class BaseCcFilesQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery');
}
/**
* Filter the query by a related CcStampContents object
*
* @param CcStampContents $ccStampContents the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function filterByCcStampContents($ccStampContents, $comparison = null)
{
return $this
->addUsingAlias(CcFilesPeer::ID, $ccStampContents->getDbFileId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStampContents relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcFilesQuery The current query, for fluid interface
*/
public function joinCcStampContents($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStampContents');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStampContents');
}
return $this;
}
/**
* Use the CcStampContents relation CcStampContents object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery A secondary query class using the current class as primary query
*/
public function useCcStampContentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcStampContents($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStampContents', 'CcStampContentsQuery');
}
/**
* Exclude object from result
*

View file

@ -78,11 +78,6 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
*/
protected $collCcPlaylistcontentss;
/**
* @var array CcStampContents[] Collection to store aggregation of CcStampContents objects.
*/
protected $collCcStampContentss;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@ -560,8 +555,6 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
$this->aCcSubjs = null;
$this->collCcPlaylistcontentss = null;
$this->collCcStampContentss = null;
} // if (deep)
}
@ -715,14 +708,6 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
@ -814,14 +799,6 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
@ -1092,12 +1069,6 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
}
}
foreach ($this->getCcStampContentss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcStampContents($relObj->copy($deepCopy));
}
}
} // if ($deepCopy)
@ -1351,215 +1322,6 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
return $this->getCcPlaylistcontentss($query, $con);
}
/**
* Clears out the collCcStampContentss collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcStampContentss()
*/
public function clearCcStampContentss()
{
$this->collCcStampContentss = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcStampContentss collection.
*
* By default this just sets the collCcStampContentss collection to an empty array (like clearcollCcStampContentss());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcStampContentss()
{
$this->collCcStampContentss = new PropelObjectCollection();
$this->collCcStampContentss->setModel('CcStampContents');
}
/**
* Gets an array of CcStampContents objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcPlaylist is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
* @throws PropelException
*/
public function getCcStampContentss($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
// return empty collection
$this->initCcStampContentss();
} else {
$collCcStampContentss = CcStampContentsQuery::create(null, $criteria)
->filterByCcPlaylist($this)
->find($con);
if (null !== $criteria) {
return $collCcStampContentss;
}
$this->collCcStampContentss = $collCcStampContentss;
}
}
return $this->collCcStampContentss;
}
/**
* Returns the number of related CcStampContents objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcStampContents objects.
* @throws PropelException
*/
public function countCcStampContentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
return 0;
} else {
$query = CcStampContentsQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcPlaylist($this)
->count($con);
}
} else {
return count($this->collCcStampContentss);
}
}
/**
* Method called to associate a CcStampContents object to this object
* through the CcStampContents foreign key attribute.
*
* @param CcStampContents $l CcStampContents
* @return void
* @throws PropelException
*/
public function addCcStampContents(CcStampContents $l)
{
if ($this->collCcStampContentss === null) {
$this->initCcStampContentss();
}
if (!$this->collCcStampContentss->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcStampContentss[]= $l;
$l->setCcPlaylist($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcPlaylist is new, it will return
* an empty collection; or if this CcPlaylist has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcPlaylist.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcStamp($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcStamp', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcPlaylist is new, it will return
* an empty collection; or if this CcPlaylist has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcPlaylist.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcFiles', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcPlaylist is new, it will return
* an empty collection; or if this CcPlaylist has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcPlaylist.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcWebstream($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcWebstream', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcPlaylist is new, it will return
* an empty collection; or if this CcPlaylist has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcPlaylist.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcBlock', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* Clears the current object and sets all attributes to their default values
*/
@ -1598,15 +1360,9 @@ abstract class BaseCcPlaylist extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcStampContentss) {
foreach ((array) $this->collCcStampContentss as $o) {
$o->clearAllReferences($deep);
}
}
} // if ($deep)
$this->collCcPlaylistcontentss = null;
$this->collCcStampContentss = null;
$this->aCcSubjs = null;
}

View file

@ -371,9 +371,6 @@ abstract class BaseCcPlaylistPeer {
// Invalidate objects in CcPlaylistcontentsPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcPlaylistcontentsPeer::clearInstancePool();
// Invalidate objects in CcStampContentsPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcStampContentsPeer::clearInstancePool();
}
/**

View file

@ -34,10 +34,6 @@
* @method CcPlaylistQuery rightJoinCcPlaylistcontents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylistcontents relation
* @method CcPlaylistQuery innerJoinCcPlaylistcontents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylistcontents relation
*
* @method CcPlaylistQuery leftJoinCcStampContents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStampContents relation
* @method CcPlaylistQuery rightJoinCcStampContents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStampContents relation
* @method CcPlaylistQuery innerJoinCcStampContents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStampContents relation
*
* @method CcPlaylist findOne(PropelPDO $con = null) Return the first CcPlaylist matching the query
* @method CcPlaylist findOneOrCreate(PropelPDO $con = null) Return the first CcPlaylist matching the query, or a new CcPlaylist object populated from the query conditions when no match is found
*
@ -469,70 +465,6 @@ abstract class BaseCcPlaylistQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CcPlaylistcontents', 'CcPlaylistcontentsQuery');
}
/**
* Filter the query by a related CcStampContents object
*
* @param CcStampContents $ccStampContents the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcPlaylistQuery The current query, for fluid interface
*/
public function filterByCcStampContents($ccStampContents, $comparison = null)
{
return $this
->addUsingAlias(CcPlaylistPeer::ID, $ccStampContents->getDbPlaylistId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStampContents relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcPlaylistQuery The current query, for fluid interface
*/
public function joinCcStampContents($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStampContents');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStampContents');
}
return $this;
}
/**
* Use the CcStampContents relation CcStampContents object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery A secondary query class using the current class as primary query
*/
public function useCcStampContentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcStampContents($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStampContents', 'CcStampContentsQuery');
}
/**
* Exclude object from result
*

View file

@ -115,18 +115,11 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
protected $broadcasted;
/**
* The value for the stamp_id field.
* The value for the position field.
* Note: this column has a database default value of: 0
* @var int
*/
protected $stamp_id;
/**
* The value for the stamp_content_id field.
* Note: this column has a database default value of: 0
* @var int
*/
protected $stamp_content_id;
protected $position;
/**
* @var CcShowInstances
@ -176,8 +169,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->media_item_played = false;
$this->playout_status = 1;
$this->broadcasted = 0;
$this->stamp_id = 0;
$this->stamp_content_id = 0;
$this->position = 0;
}
/**
@ -423,23 +415,13 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
}
/**
* Get the [stamp_id] column value.
* Get the [position] column value.
*
* @return int
*/
public function getDbStampId()
public function getDbPosition()
{
return $this->stamp_id;
}
/**
* Get the [stamp_content_id] column value.
*
* @return int
*/
public function getDbStampContentId()
{
return $this->stamp_content_id;
return $this->position;
}
/**
@ -853,44 +835,24 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
} // setDbBroadcasted()
/**
* Set the value of [stamp_id] column.
* Set the value of [position] column.
*
* @param int $v new value
* @return CcSchedule The current object (for fluent API support)
*/
public function setDbStampId($v)
public function setDbPosition($v)
{
if ($v !== null) {
$v = (int) $v;
}
if ($this->stamp_id !== $v || $this->isNew()) {
$this->stamp_id = $v;
$this->modifiedColumns[] = CcSchedulePeer::STAMP_ID;
if ($this->position !== $v || $this->isNew()) {
$this->position = $v;
$this->modifiedColumns[] = CcSchedulePeer::POSITION;
}
return $this;
} // setDbStampId()
/**
* Set the value of [stamp_content_id] column.
*
* @param int $v new value
* @return CcSchedule The current object (for fluent API support)
*/
public function setDbStampContentId($v)
{
if ($v !== null) {
$v = (int) $v;
}
if ($this->stamp_content_id !== $v || $this->isNew()) {
$this->stamp_content_id = $v;
$this->modifiedColumns[] = CcSchedulePeer::STAMP_CONTENT_ID;
}
return $this;
} // setDbStampContentId()
} // setDbPosition()
/**
* Indicates whether the columns in this object are only set to default values.
@ -926,11 +888,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
return false;
}
if ($this->stamp_id !== 0) {
return false;
}
if ($this->stamp_content_id !== 0) {
if ($this->position !== 0) {
return false;
}
@ -970,8 +928,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->instance_id = ($row[$startcol + 11] !== null) ? (int) $row[$startcol + 11] : null;
$this->playout_status = ($row[$startcol + 12] !== null) ? (int) $row[$startcol + 12] : null;
$this->broadcasted = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null;
$this->stamp_id = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null;
$this->stamp_content_id = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
$this->position = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null;
$this->resetModified();
$this->setNew(false);
@ -980,7 +937,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->ensureConsistency();
}
return $startcol + 16; // 16 = CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS).
return $startcol + 15; // 15 = CcSchedulePeer::NUM_COLUMNS - CcSchedulePeer::NUM_LAZY_LOAD_COLUMNS).
} catch (Exception $e) {
throw new PropelException("Error populating CcSchedule object", $e);
@ -1402,10 +1359,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
return $this->getDbBroadcasted();
break;
case 14:
return $this->getDbStampId();
break;
case 15:
return $this->getDbStampContentId();
return $this->getDbPosition();
break;
default:
return null;
@ -1445,8 +1399,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$keys[11] => $this->getDbInstanceId(),
$keys[12] => $this->getDbPlayoutStatus(),
$keys[13] => $this->getDbBroadcasted(),
$keys[14] => $this->getDbStampId(),
$keys[15] => $this->getDbStampContentId(),
$keys[14] => $this->getDbPosition(),
);
if ($includeForeignObjects) {
if (null !== $this->aCcShowInstances) {
@ -1532,10 +1485,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->setDbBroadcasted($value);
break;
case 14:
$this->setDbStampId($value);
break;
case 15:
$this->setDbStampContentId($value);
$this->setDbPosition($value);
break;
} // switch()
}
@ -1575,8 +1525,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
if (array_key_exists($keys[11], $arr)) $this->setDbInstanceId($arr[$keys[11]]);
if (array_key_exists($keys[12], $arr)) $this->setDbPlayoutStatus($arr[$keys[12]]);
if (array_key_exists($keys[13], $arr)) $this->setDbBroadcasted($arr[$keys[13]]);
if (array_key_exists($keys[14], $arr)) $this->setDbStampId($arr[$keys[14]]);
if (array_key_exists($keys[15], $arr)) $this->setDbStampContentId($arr[$keys[15]]);
if (array_key_exists($keys[14], $arr)) $this->setDbPosition($arr[$keys[14]]);
}
/**
@ -1602,8 +1551,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
if ($this->isColumnModified(CcSchedulePeer::INSTANCE_ID)) $criteria->add(CcSchedulePeer::INSTANCE_ID, $this->instance_id);
if ($this->isColumnModified(CcSchedulePeer::PLAYOUT_STATUS)) $criteria->add(CcSchedulePeer::PLAYOUT_STATUS, $this->playout_status);
if ($this->isColumnModified(CcSchedulePeer::BROADCASTED)) $criteria->add(CcSchedulePeer::BROADCASTED, $this->broadcasted);
if ($this->isColumnModified(CcSchedulePeer::STAMP_ID)) $criteria->add(CcSchedulePeer::STAMP_ID, $this->stamp_id);
if ($this->isColumnModified(CcSchedulePeer::STAMP_CONTENT_ID)) $criteria->add(CcSchedulePeer::STAMP_CONTENT_ID, $this->stamp_content_id);
if ($this->isColumnModified(CcSchedulePeer::POSITION)) $criteria->add(CcSchedulePeer::POSITION, $this->position);
return $criteria;
}
@ -1678,8 +1626,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$copyObj->setDbInstanceId($this->instance_id);
$copyObj->setDbPlayoutStatus($this->playout_status);
$copyObj->setDbBroadcasted($this->broadcasted);
$copyObj->setDbStampId($this->stamp_id);
$copyObj->setDbStampContentId($this->stamp_content_id);
$copyObj->setDbPosition($this->position);
if ($deepCopy) {
// important: temporarily setNew(false) because this affects the behavior of
@ -2012,8 +1959,7 @@ abstract class BaseCcSchedule extends BaseObject implements Persistent
$this->instance_id = null;
$this->playout_status = null;
$this->broadcasted = null;
$this->stamp_id = null;
$this->stamp_content_id = null;
$this->position = null;
$this->alreadyInSave = false;
$this->alreadyInValidation = false;
$this->clearAllReferences();

View file

@ -26,7 +26,7 @@ abstract class BaseCcSchedulePeer {
const TM_CLASS = 'CcScheduleTableMap';
/** The total number of columns. */
const NUM_COLUMNS = 16;
const NUM_COLUMNS = 15;
/** The number of lazy-loaded columns. */
const NUM_LAZY_LOAD_COLUMNS = 0;
@ -73,11 +73,8 @@ abstract class BaseCcSchedulePeer {
/** the column name for the BROADCASTED field */
const BROADCASTED = 'cc_schedule.BROADCASTED';
/** the column name for the STAMP_ID field */
const STAMP_ID = 'cc_schedule.STAMP_ID';
/** the column name for the STAMP_CONTENT_ID field */
const STAMP_CONTENT_ID = 'cc_schedule.STAMP_CONTENT_ID';
/** the column name for the POSITION field */
const POSITION = 'cc_schedule.POSITION';
/**
* An identiy map to hold any loaded instances of CcSchedule objects.
@ -95,12 +92,12 @@ abstract class BaseCcSchedulePeer {
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
*/
private static $fieldNames = array (
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbFileId', 'DbStreamId', 'DbClipLength', 'DbFadeIn', 'DbFadeOut', 'DbCueIn', 'DbCueOut', 'DbMediaItemPlayed', 'DbInstanceId', 'DbPlayoutStatus', 'DbBroadcasted', 'DbStampId', 'DbStampContentId', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbFileId', 'dbStreamId', 'dbClipLength', 'dbFadeIn', 'dbFadeOut', 'dbCueIn', 'dbCueOut', 'dbMediaItemPlayed', 'dbInstanceId', 'dbPlayoutStatus', 'dbBroadcasted', 'dbStampId', 'dbStampContentId', ),
BasePeer::TYPE_COLNAME => array (self::ID, self::STARTS, self::ENDS, self::FILE_ID, self::STREAM_ID, self::CLIP_LENGTH, self::FADE_IN, self::FADE_OUT, self::CUE_IN, self::CUE_OUT, self::MEDIA_ITEM_PLAYED, self::INSTANCE_ID, self::PLAYOUT_STATUS, self::BROADCASTED, self::STAMP_ID, self::STAMP_CONTENT_ID, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'FILE_ID', 'STREAM_ID', 'CLIP_LENGTH', 'FADE_IN', 'FADE_OUT', 'CUE_IN', 'CUE_OUT', 'MEDIA_ITEM_PLAYED', 'INSTANCE_ID', 'PLAYOUT_STATUS', 'BROADCASTED', 'STAMP_ID', 'STAMP_CONTENT_ID', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'file_id', 'stream_id', 'clip_length', 'fade_in', 'fade_out', 'cue_in', 'cue_out', 'media_item_played', 'instance_id', 'playout_status', 'broadcasted', 'stamp_id', 'stamp_content_id', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbStarts', 'DbEnds', 'DbFileId', 'DbStreamId', 'DbClipLength', 'DbFadeIn', 'DbFadeOut', 'DbCueIn', 'DbCueOut', 'DbMediaItemPlayed', 'DbInstanceId', 'DbPlayoutStatus', 'DbBroadcasted', 'DbPosition', ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbStarts', 'dbEnds', 'dbFileId', 'dbStreamId', 'dbClipLength', 'dbFadeIn', 'dbFadeOut', 'dbCueIn', 'dbCueOut', 'dbMediaItemPlayed', 'dbInstanceId', 'dbPlayoutStatus', 'dbBroadcasted', 'dbPosition', ),
BasePeer::TYPE_COLNAME => array (self::ID, self::STARTS, self::ENDS, self::FILE_ID, self::STREAM_ID, self::CLIP_LENGTH, self::FADE_IN, self::FADE_OUT, self::CUE_IN, self::CUE_OUT, self::MEDIA_ITEM_PLAYED, self::INSTANCE_ID, self::PLAYOUT_STATUS, self::BROADCASTED, self::POSITION, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'STARTS', 'ENDS', 'FILE_ID', 'STREAM_ID', 'CLIP_LENGTH', 'FADE_IN', 'FADE_OUT', 'CUE_IN', 'CUE_OUT', 'MEDIA_ITEM_PLAYED', 'INSTANCE_ID', 'PLAYOUT_STATUS', 'BROADCASTED', 'POSITION', ),
BasePeer::TYPE_FIELDNAME => array ('id', 'starts', 'ends', 'file_id', 'stream_id', 'clip_length', 'fade_in', 'fade_out', 'cue_in', 'cue_out', 'media_item_played', 'instance_id', 'playout_status', 'broadcasted', 'position', ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, )
);
/**
@ -110,12 +107,12 @@ abstract class BaseCcSchedulePeer {
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
*/
private static $fieldKeys = array (
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbFileId' => 3, 'DbStreamId' => 4, 'DbClipLength' => 5, 'DbFadeIn' => 6, 'DbFadeOut' => 7, 'DbCueIn' => 8, 'DbCueOut' => 9, 'DbMediaItemPlayed' => 10, 'DbInstanceId' => 11, 'DbPlayoutStatus' => 12, 'DbBroadcasted' => 13, 'DbStampId' => 14, 'DbStampContentId' => 15, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbFileId' => 3, 'dbStreamId' => 4, 'dbClipLength' => 5, 'dbFadeIn' => 6, 'dbFadeOut' => 7, 'dbCueIn' => 8, 'dbCueOut' => 9, 'dbMediaItemPlayed' => 10, 'dbInstanceId' => 11, 'dbPlayoutStatus' => 12, 'dbBroadcasted' => 13, 'dbStampId' => 14, 'dbStampContentId' => 15, ),
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::STARTS => 1, self::ENDS => 2, self::FILE_ID => 3, self::STREAM_ID => 4, self::CLIP_LENGTH => 5, self::FADE_IN => 6, self::FADE_OUT => 7, self::CUE_IN => 8, self::CUE_OUT => 9, self::MEDIA_ITEM_PLAYED => 10, self::INSTANCE_ID => 11, self::PLAYOUT_STATUS => 12, self::BROADCASTED => 13, self::STAMP_ID => 14, self::STAMP_CONTENT_ID => 15, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'FILE_ID' => 3, 'STREAM_ID' => 4, 'CLIP_LENGTH' => 5, 'FADE_IN' => 6, 'FADE_OUT' => 7, 'CUE_IN' => 8, 'CUE_OUT' => 9, 'MEDIA_ITEM_PLAYED' => 10, 'INSTANCE_ID' => 11, 'PLAYOUT_STATUS' => 12, 'BROADCASTED' => 13, 'STAMP_ID' => 14, 'STAMP_CONTENT_ID' => 15, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'file_id' => 3, 'stream_id' => 4, 'clip_length' => 5, 'fade_in' => 6, 'fade_out' => 7, 'cue_in' => 8, 'cue_out' => 9, 'media_item_played' => 10, 'instance_id' => 11, 'playout_status' => 12, 'broadcasted' => 13, 'stamp_id' => 14, 'stamp_content_id' => 15, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, )
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbStarts' => 1, 'DbEnds' => 2, 'DbFileId' => 3, 'DbStreamId' => 4, 'DbClipLength' => 5, 'DbFadeIn' => 6, 'DbFadeOut' => 7, 'DbCueIn' => 8, 'DbCueOut' => 9, 'DbMediaItemPlayed' => 10, 'DbInstanceId' => 11, 'DbPlayoutStatus' => 12, 'DbBroadcasted' => 13, 'DbPosition' => 14, ),
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbStarts' => 1, 'dbEnds' => 2, 'dbFileId' => 3, 'dbStreamId' => 4, 'dbClipLength' => 5, 'dbFadeIn' => 6, 'dbFadeOut' => 7, 'dbCueIn' => 8, 'dbCueOut' => 9, 'dbMediaItemPlayed' => 10, 'dbInstanceId' => 11, 'dbPlayoutStatus' => 12, 'dbBroadcasted' => 13, 'dbPosition' => 14, ),
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::STARTS => 1, self::ENDS => 2, self::FILE_ID => 3, self::STREAM_ID => 4, self::CLIP_LENGTH => 5, self::FADE_IN => 6, self::FADE_OUT => 7, self::CUE_IN => 8, self::CUE_OUT => 9, self::MEDIA_ITEM_PLAYED => 10, self::INSTANCE_ID => 11, self::PLAYOUT_STATUS => 12, self::BROADCASTED => 13, self::POSITION => 14, ),
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'STARTS' => 1, 'ENDS' => 2, 'FILE_ID' => 3, 'STREAM_ID' => 4, 'CLIP_LENGTH' => 5, 'FADE_IN' => 6, 'FADE_OUT' => 7, 'CUE_IN' => 8, 'CUE_OUT' => 9, 'MEDIA_ITEM_PLAYED' => 10, 'INSTANCE_ID' => 11, 'PLAYOUT_STATUS' => 12, 'BROADCASTED' => 13, 'POSITION' => 14, ),
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'starts' => 1, 'ends' => 2, 'file_id' => 3, 'stream_id' => 4, 'clip_length' => 5, 'fade_in' => 6, 'fade_out' => 7, 'cue_in' => 8, 'cue_out' => 9, 'media_item_played' => 10, 'instance_id' => 11, 'playout_status' => 12, 'broadcasted' => 13, 'position' => 14, ),
BasePeer::TYPE_NUM => array (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, )
);
/**
@ -201,8 +198,7 @@ abstract class BaseCcSchedulePeer {
$criteria->addSelectColumn(CcSchedulePeer::INSTANCE_ID);
$criteria->addSelectColumn(CcSchedulePeer::PLAYOUT_STATUS);
$criteria->addSelectColumn(CcSchedulePeer::BROADCASTED);
$criteria->addSelectColumn(CcSchedulePeer::STAMP_ID);
$criteria->addSelectColumn(CcSchedulePeer::STAMP_CONTENT_ID);
$criteria->addSelectColumn(CcSchedulePeer::POSITION);
} else {
$criteria->addSelectColumn($alias . '.ID');
$criteria->addSelectColumn($alias . '.STARTS');
@ -218,8 +214,7 @@ abstract class BaseCcSchedulePeer {
$criteria->addSelectColumn($alias . '.INSTANCE_ID');
$criteria->addSelectColumn($alias . '.PLAYOUT_STATUS');
$criteria->addSelectColumn($alias . '.BROADCASTED');
$criteria->addSelectColumn($alias . '.STAMP_ID');
$criteria->addSelectColumn($alias . '.STAMP_CONTENT_ID');
$criteria->addSelectColumn($alias . '.POSITION');
}
}

View file

@ -20,8 +20,7 @@
* @method CcScheduleQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column
* @method CcScheduleQuery orderByDbPlayoutStatus($order = Criteria::ASC) Order by the playout_status column
* @method CcScheduleQuery orderByDbBroadcasted($order = Criteria::ASC) Order by the broadcasted column
* @method CcScheduleQuery orderByDbStampId($order = Criteria::ASC) Order by the stamp_id column
* @method CcScheduleQuery orderByDbStampContentId($order = Criteria::ASC) Order by the stamp_content_id column
* @method CcScheduleQuery orderByDbPosition($order = Criteria::ASC) Order by the position column
*
* @method CcScheduleQuery groupByDbId() Group by the id column
* @method CcScheduleQuery groupByDbStarts() Group by the starts column
@ -37,8 +36,7 @@
* @method CcScheduleQuery groupByDbInstanceId() Group by the instance_id column
* @method CcScheduleQuery groupByDbPlayoutStatus() Group by the playout_status column
* @method CcScheduleQuery groupByDbBroadcasted() Group by the broadcasted column
* @method CcScheduleQuery groupByDbStampId() Group by the stamp_id column
* @method CcScheduleQuery groupByDbStampContentId() Group by the stamp_content_id column
* @method CcScheduleQuery groupByDbPosition() Group by the position column
*
* @method CcScheduleQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method CcScheduleQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
@ -77,8 +75,7 @@
* @method CcSchedule findOneByDbInstanceId(int $instance_id) Return the first CcSchedule filtered by the instance_id column
* @method CcSchedule findOneByDbPlayoutStatus(int $playout_status) Return the first CcSchedule filtered by the playout_status column
* @method CcSchedule findOneByDbBroadcasted(int $broadcasted) Return the first CcSchedule filtered by the broadcasted column
* @method CcSchedule findOneByDbStampId(int $stamp_id) Return the first CcSchedule filtered by the stamp_id column
* @method CcSchedule findOneByDbStampContentId(int $stamp_content_id) Return the first CcSchedule filtered by the stamp_content_id column
* @method CcSchedule findOneByDbPosition(int $position) Return the first CcSchedule filtered by the position column
*
* @method array findByDbId(int $id) Return CcSchedule objects filtered by the id column
* @method array findByDbStarts(string $starts) Return CcSchedule objects filtered by the starts column
@ -94,8 +91,7 @@
* @method array findByDbInstanceId(int $instance_id) Return CcSchedule objects filtered by the instance_id column
* @method array findByDbPlayoutStatus(int $playout_status) Return CcSchedule objects filtered by the playout_status column
* @method array findByDbBroadcasted(int $broadcasted) Return CcSchedule objects filtered by the broadcasted column
* @method array findByDbStampId(int $stamp_id) Return CcSchedule objects filtered by the stamp_id column
* @method array findByDbStampContentId(int $stamp_content_id) Return CcSchedule objects filtered by the stamp_content_id column
* @method array findByDbPosition(int $position) Return CcSchedule objects filtered by the position column
*
* @package propel.generator.airtime.om
*/
@ -585,24 +581,24 @@ abstract class BaseCcScheduleQuery extends ModelCriteria
}
/**
* Filter the query on the stamp_id column
* Filter the query on the position column
*
* @param int|array $dbStampId The value to use as filter.
* @param int|array $dbPosition The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcScheduleQuery The current query, for fluid interface
*/
public function filterByDbStampId($dbStampId = null, $comparison = null)
public function filterByDbPosition($dbPosition = null, $comparison = null)
{
if (is_array($dbStampId)) {
if (is_array($dbPosition)) {
$useMinMax = false;
if (isset($dbStampId['min'])) {
$this->addUsingAlias(CcSchedulePeer::STAMP_ID, $dbStampId['min'], Criteria::GREATER_EQUAL);
if (isset($dbPosition['min'])) {
$this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbStampId['max'])) {
$this->addUsingAlias(CcSchedulePeer::STAMP_ID, $dbStampId['max'], Criteria::LESS_EQUAL);
if (isset($dbPosition['max'])) {
$this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
@ -612,38 +608,7 @@ abstract class BaseCcScheduleQuery extends ModelCriteria
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcSchedulePeer::STAMP_ID, $dbStampId, $comparison);
}
/**
* Filter the query on the stamp_content_id column
*
* @param int|array $dbStampContentId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcScheduleQuery The current query, for fluid interface
*/
public function filterByDbStampContentId($dbStampContentId = null, $comparison = null)
{
if (is_array($dbStampContentId)) {
$useMinMax = false;
if (isset($dbStampContentId['min'])) {
$this->addUsingAlias(CcSchedulePeer::STAMP_CONTENT_ID, $dbStampContentId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbStampContentId['max'])) {
$this->addUsingAlias(CcSchedulePeer::STAMP_CONTENT_ID, $dbStampContentId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcSchedulePeer::STAMP_CONTENT_ID, $dbStampContentId, $comparison);
return $this->addUsingAlias(CcSchedulePeer::POSITION, $dbPosition, $comparison);
}
/**

View file

@ -122,11 +122,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
*/
protected $collCcShowHostss;
/**
* @var array CcStamp[] Collection to store aggregation of CcStamp objects.
*/
protected $collCcStamps;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@ -673,8 +668,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$this->collCcShowHostss = null;
$this->collCcStamps = null;
} // if (deep)
}
@ -840,14 +833,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
}
}
if ($this->collCcStamps !== null) {
foreach ($this->collCcStamps as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
@ -951,14 +936,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
}
}
if ($this->collCcStamps !== null) {
foreach ($this->collCcStamps as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
@ -1291,12 +1268,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
}
}
foreach ($this->getCcStamps() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcStamp($relObj->copy($deepCopy));
}
}
} // if ($deepCopy)
@ -1853,140 +1824,6 @@ abstract class BaseCcShow extends BaseObject implements Persistent
return $this->getCcShowHostss($query, $con);
}
/**
* Clears out the collCcStamps collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcStamps()
*/
public function clearCcStamps()
{
$this->collCcStamps = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcStamps collection.
*
* By default this just sets the collCcStamps collection to an empty array (like clearcollCcStamps());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcStamps()
{
$this->collCcStamps = new PropelObjectCollection();
$this->collCcStamps->setModel('CcStamp');
}
/**
* Gets an array of CcStamp objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcShow is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcStamp[] List of CcStamp objects
* @throws PropelException
*/
public function getCcStamps($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcStamps || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStamps) {
// return empty collection
$this->initCcStamps();
} else {
$collCcStamps = CcStampQuery::create(null, $criteria)
->filterByCcShow($this)
->find($con);
if (null !== $criteria) {
return $collCcStamps;
}
$this->collCcStamps = $collCcStamps;
}
}
return $this->collCcStamps;
}
/**
* Returns the number of related CcStamp objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcStamp objects.
* @throws PropelException
*/
public function countCcStamps(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcStamps || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStamps) {
return 0;
} else {
$query = CcStampQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcShow($this)
->count($con);
}
} else {
return count($this->collCcStamps);
}
}
/**
* Method called to associate a CcStamp object to this object
* through the CcStamp foreign key attribute.
*
* @param CcStamp $l CcStamp
* @return void
* @throws PropelException
*/
public function addCcStamp(CcStamp $l)
{
if ($this->collCcStamps === null) {
$this->initCcStamps();
}
if (!$this->collCcStamps->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcStamps[]= $l;
$l->setCcShow($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcShow is new, it will return
* an empty collection; or if this CcShow has previously
* been saved, it will retrieve related CcStamps from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcShow.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStamp[] List of CcStamp objects
*/
public function getCcStampsJoinCcShowInstances($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampQuery::create(null, $criteria);
$query->joinWith('CcShowInstances', $join_behavior);
return $this->getCcStamps($query, $con);
}
/**
* Clears the current object and sets all attributes to their default values
*/
@ -2045,18 +1882,12 @@ abstract class BaseCcShow extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcStamps) {
foreach ((array) $this->collCcStamps as $o) {
$o->clearAllReferences($deep);
}
}
} // if ($deep)
$this->collCcShowInstancess = null;
$this->collCcShowDayss = null;
$this->collCcShowRebroadcasts = null;
$this->collCcShowHostss = null;
$this->collCcStamps = null;
}
/**

View file

@ -125,11 +125,6 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
*/
protected $collCcSchedules;
/**
* @var array CcStamp[] Collection to store aggregation of CcStamp objects.
*/
protected $collCcStamps;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@ -894,8 +889,6 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$this->collCcSchedules = null;
$this->collCcStamps = null;
} // if (deep)
}
@ -1071,14 +1064,6 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
}
}
if ($this->collCcStamps !== null) {
foreach ($this->collCcStamps as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
@ -1190,14 +1175,6 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
}
}
if ($this->collCcStamps !== null) {
foreach ($this->collCcStamps as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
@ -1530,12 +1507,6 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
}
}
foreach ($this->getCcStamps() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcStamp($relObj->copy($deepCopy));
}
}
} // if ($deepCopy)
@ -2046,140 +2017,6 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
return $this->getCcSchedules($query, $con);
}
/**
* Clears out the collCcStamps collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcStamps()
*/
public function clearCcStamps()
{
$this->collCcStamps = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcStamps collection.
*
* By default this just sets the collCcStamps collection to an empty array (like clearcollCcStamps());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcStamps()
{
$this->collCcStamps = new PropelObjectCollection();
$this->collCcStamps->setModel('CcStamp');
}
/**
* Gets an array of CcStamp objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcShowInstances is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcStamp[] List of CcStamp objects
* @throws PropelException
*/
public function getCcStamps($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcStamps || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStamps) {
// return empty collection
$this->initCcStamps();
} else {
$collCcStamps = CcStampQuery::create(null, $criteria)
->filterByCcShowInstances($this)
->find($con);
if (null !== $criteria) {
return $collCcStamps;
}
$this->collCcStamps = $collCcStamps;
}
}
return $this->collCcStamps;
}
/**
* Returns the number of related CcStamp objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcStamp objects.
* @throws PropelException
*/
public function countCcStamps(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcStamps || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStamps) {
return 0;
} else {
$query = CcStampQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcShowInstances($this)
->count($con);
}
} else {
return count($this->collCcStamps);
}
}
/**
* Method called to associate a CcStamp object to this object
* through the CcStamp foreign key attribute.
*
* @param CcStamp $l CcStamp
* @return void
* @throws PropelException
*/
public function addCcStamp(CcStamp $l)
{
if ($this->collCcStamps === null) {
$this->initCcStamps();
}
if (!$this->collCcStamps->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcStamps[]= $l;
$l->setCcShowInstances($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcShowInstances is new, it will return
* an empty collection; or if this CcShowInstances has previously
* been saved, it will retrieve related CcStamps from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcShowInstances.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStamp[] List of CcStamp objects
*/
public function getCcStampsJoinCcShow($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampQuery::create(null, $criteria);
$query->joinWith('CcShow', $join_behavior);
return $this->getCcStamps($query, $con);
}
/**
* Clears the current object and sets all attributes to their default values
*/
@ -2228,16 +2065,10 @@ abstract class BaseCcShowInstances extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcStamps) {
foreach ((array) $this->collCcStamps as $o) {
$o->clearAllReferences($deep);
}
}
} // if ($deep)
$this->collCcShowInstancessRelatedByDbId = null;
$this->collCcSchedules = null;
$this->collCcStamps = null;
$this->aCcShow = null;
$this->aCcShowInstancesRelatedByDbOriginalShow = null;
$this->aCcFiles = null;

View file

@ -399,9 +399,6 @@ abstract class BaseCcShowInstancesPeer {
// Invalidate objects in CcSchedulePeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcSchedulePeer::clearInstancePool();
// Invalidate objects in CcStampPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcStampPeer::clearInstancePool();
}
/**

View file

@ -56,10 +56,6 @@
* @method CcShowInstancesQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation
* @method CcShowInstancesQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation
*
* @method CcShowInstancesQuery leftJoinCcStamp($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStamp relation
* @method CcShowInstancesQuery rightJoinCcStamp($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStamp relation
* @method CcShowInstancesQuery innerJoinCcStamp($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStamp relation
*
* @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
*
@ -852,70 +848,6 @@ abstract class BaseCcShowInstancesQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery');
}
/**
* Filter the query by a related CcStamp object
*
* @param CcStamp $ccStamp the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcShowInstancesQuery The current query, for fluid interface
*/
public function filterByCcStamp($ccStamp, $comparison = null)
{
return $this
->addUsingAlias(CcShowInstancesPeer::ID, $ccStamp->getDbInstanceId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStamp relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcShowInstancesQuery The current query, for fluid interface
*/
public function joinCcStamp($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStamp');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStamp');
}
return $this;
}
/**
* Use the CcStamp relation CcStamp object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampQuery A secondary query class using the current class as primary query
*/
public function useCcStampQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcStamp($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStamp', 'CcStampQuery');
}
/**
* Exclude object from result
*

View file

@ -405,9 +405,6 @@ abstract class BaseCcShowPeer {
// Invalidate objects in CcShowHostsPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcShowHostsPeer::clearInstancePool();
// Invalidate objects in CcStampPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcStampPeer::clearInstancePool();
}
/**

View file

@ -52,10 +52,6 @@
* @method CcShowQuery rightJoinCcShowHosts($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowHosts relation
* @method CcShowQuery innerJoinCcShowHosts($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowHosts relation
*
* @method CcShowQuery leftJoinCcStamp($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStamp relation
* @method CcShowQuery rightJoinCcStamp($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStamp relation
* @method CcShowQuery innerJoinCcStamp($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStamp relation
*
* @method CcShow findOne(PropelPDO $con = null) Return the first CcShow matching the query
* @method CcShow findOneOrCreate(PropelPDO $con = null) Return the first CcShow matching the query, or a new CcShow object populated from the query conditions when no match is found
*
@ -693,70 +689,6 @@ abstract class BaseCcShowQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CcShowHosts', 'CcShowHostsQuery');
}
/**
* Filter the query by a related CcStamp object
*
* @param CcStamp $ccStamp the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcShowQuery The current query, for fluid interface
*/
public function filterByCcStamp($ccStamp, $comparison = null)
{
return $this
->addUsingAlias(CcShowPeer::ID, $ccStamp->getDbShowId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStamp relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcShowQuery The current query, for fluid interface
*/
public function joinCcStamp($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStamp');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStamp');
}
return $this;
}
/**
* Use the CcStamp relation CcStamp object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampQuery A secondary query class using the current class as primary query
*/
public function useCcStampQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
return $this
->joinCcStamp($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStamp', 'CcStampQuery');
}
/**
* Exclude object from result
*

File diff suppressed because it is too large Load diff

View file

@ -1,845 +0,0 @@
<?php
/**
* Base class that represents a query for the 'cc_stamp_contents' table.
*
*
*
* @method CcStampContentsQuery orderByDbId($order = Criteria::ASC) Order by the id column
* @method CcStampContentsQuery orderByDbStampId($order = Criteria::ASC) Order by the stamp_id column
* @method CcStampContentsQuery orderByDbFileId($order = Criteria::ASC) Order by the file_id column
* @method CcStampContentsQuery orderByDbStreamId($order = Criteria::ASC) Order by the stream_id column
* @method CcStampContentsQuery orderByDbBlockId($order = Criteria::ASC) Order by the block_id column
* @method CcStampContentsQuery orderByDbPlaylistId($order = Criteria::ASC) Order by the playlist_id column
* @method CcStampContentsQuery orderByDbPosition($order = Criteria::ASC) Order by the position column
* @method CcStampContentsQuery orderByDbClipLength($order = Criteria::ASC) Order by the clip_length column
* @method CcStampContentsQuery orderByDbCueIn($order = Criteria::ASC) Order by the cue_in column
* @method CcStampContentsQuery orderByDbCueOut($order = Criteria::ASC) Order by the cue_out column
* @method CcStampContentsQuery orderByDbFadeIn($order = Criteria::ASC) Order by the fade_in column
* @method CcStampContentsQuery orderByDbFadeOut($order = Criteria::ASC) Order by the fade_out column
*
* @method CcStampContentsQuery groupByDbId() Group by the id column
* @method CcStampContentsQuery groupByDbStampId() Group by the stamp_id column
* @method CcStampContentsQuery groupByDbFileId() Group by the file_id column
* @method CcStampContentsQuery groupByDbStreamId() Group by the stream_id column
* @method CcStampContentsQuery groupByDbBlockId() Group by the block_id column
* @method CcStampContentsQuery groupByDbPlaylistId() Group by the playlist_id column
* @method CcStampContentsQuery groupByDbPosition() Group by the position column
* @method CcStampContentsQuery groupByDbClipLength() Group by the clip_length column
* @method CcStampContentsQuery groupByDbCueIn() Group by the cue_in column
* @method CcStampContentsQuery groupByDbCueOut() Group by the cue_out column
* @method CcStampContentsQuery groupByDbFadeIn() Group by the fade_in column
* @method CcStampContentsQuery groupByDbFadeOut() Group by the fade_out column
*
* @method CcStampContentsQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method CcStampContentsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method CcStampContentsQuery innerJoin($relation) Adds a INNER JOIN clause to the query
*
* @method CcStampContentsQuery leftJoinCcStamp($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStamp relation
* @method CcStampContentsQuery rightJoinCcStamp($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStamp relation
* @method CcStampContentsQuery innerJoinCcStamp($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStamp relation
*
* @method CcStampContentsQuery leftJoinCcFiles($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFiles relation
* @method CcStampContentsQuery rightJoinCcFiles($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFiles relation
* @method CcStampContentsQuery innerJoinCcFiles($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFiles relation
*
* @method CcStampContentsQuery leftJoinCcWebstream($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcWebstream relation
* @method CcStampContentsQuery rightJoinCcWebstream($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcWebstream relation
* @method CcStampContentsQuery innerJoinCcWebstream($relationAlias = '') Adds a INNER JOIN clause to the query using the CcWebstream relation
*
* @method CcStampContentsQuery leftJoinCcBlock($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcBlock relation
* @method CcStampContentsQuery rightJoinCcBlock($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcBlock relation
* @method CcStampContentsQuery innerJoinCcBlock($relationAlias = '') Adds a INNER JOIN clause to the query using the CcBlock relation
*
* @method CcStampContentsQuery leftJoinCcPlaylist($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcPlaylist relation
* @method CcStampContentsQuery rightJoinCcPlaylist($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcPlaylist relation
* @method CcStampContentsQuery innerJoinCcPlaylist($relationAlias = '') Adds a INNER JOIN clause to the query using the CcPlaylist relation
*
* @method CcStampContents findOne(PropelPDO $con = null) Return the first CcStampContents matching the query
* @method CcStampContents findOneOrCreate(PropelPDO $con = null) Return the first CcStampContents matching the query, or a new CcStampContents object populated from the query conditions when no match is found
*
* @method CcStampContents findOneByDbId(int $id) Return the first CcStampContents filtered by the id column
* @method CcStampContents findOneByDbStampId(int $stamp_id) Return the first CcStampContents filtered by the stamp_id column
* @method CcStampContents findOneByDbFileId(int $file_id) Return the first CcStampContents filtered by the file_id column
* @method CcStampContents findOneByDbStreamId(int $stream_id) Return the first CcStampContents filtered by the stream_id column
* @method CcStampContents findOneByDbBlockId(int $block_id) Return the first CcStampContents filtered by the block_id column
* @method CcStampContents findOneByDbPlaylistId(int $playlist_id) Return the first CcStampContents filtered by the playlist_id column
* @method CcStampContents findOneByDbPosition(int $position) Return the first CcStampContents filtered by the position column
* @method CcStampContents findOneByDbClipLength(string $clip_length) Return the first CcStampContents filtered by the clip_length column
* @method CcStampContents findOneByDbCueIn(string $cue_in) Return the first CcStampContents filtered by the cue_in column
* @method CcStampContents findOneByDbCueOut(string $cue_out) Return the first CcStampContents filtered by the cue_out column
* @method CcStampContents findOneByDbFadeIn(string $fade_in) Return the first CcStampContents filtered by the fade_in column
* @method CcStampContents findOneByDbFadeOut(string $fade_out) Return the first CcStampContents filtered by the fade_out column
*
* @method array findByDbId(int $id) Return CcStampContents objects filtered by the id column
* @method array findByDbStampId(int $stamp_id) Return CcStampContents objects filtered by the stamp_id column
* @method array findByDbFileId(int $file_id) Return CcStampContents objects filtered by the file_id column
* @method array findByDbStreamId(int $stream_id) Return CcStampContents objects filtered by the stream_id column
* @method array findByDbBlockId(int $block_id) Return CcStampContents objects filtered by the block_id column
* @method array findByDbPlaylistId(int $playlist_id) Return CcStampContents objects filtered by the playlist_id column
* @method array findByDbPosition(int $position) Return CcStampContents objects filtered by the position column
* @method array findByDbClipLength(string $clip_length) Return CcStampContents objects filtered by the clip_length column
* @method array findByDbCueIn(string $cue_in) Return CcStampContents objects filtered by the cue_in column
* @method array findByDbCueOut(string $cue_out) Return CcStampContents objects filtered by the cue_out column
* @method array findByDbFadeIn(string $fade_in) Return CcStampContents objects filtered by the fade_in column
* @method array findByDbFadeOut(string $fade_out) Return CcStampContents objects filtered by the fade_out column
*
* @package propel.generator.airtime.om
*/
abstract class BaseCcStampContentsQuery extends ModelCriteria
{
/**
* Initializes internal state of BaseCcStampContentsQuery object.
*
* @param string $dbName The dabase name
* @param string $modelName The phpName of a model, e.g. 'Book'
* @param string $modelAlias The alias for the model in this query, e.g. 'b'
*/
public function __construct($dbName = 'airtime', $modelName = 'CcStampContents', $modelAlias = null)
{
parent::__construct($dbName, $modelName, $modelAlias);
}
/**
* Returns a new CcStampContentsQuery object.
*
* @param string $modelAlias The alias of a model in the query
* @param Criteria $criteria Optional Criteria to build the query from
*
* @return CcStampContentsQuery
*/
public static function create($modelAlias = null, $criteria = null)
{
if ($criteria instanceof CcStampContentsQuery) {
return $criteria;
}
$query = new CcStampContentsQuery();
if (null !== $modelAlias) {
$query->setModelAlias($modelAlias);
}
if ($criteria instanceof Criteria) {
$query->mergeWith($criteria);
}
return $query;
}
/**
* Find object by primary key
* Use instance pooling to avoid a database query if the object exists
* <code>
* $obj = $c->findPk(12, $con);
* </code>
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con an optional connection object
*
* @return CcStampContents|array|mixed the result, formatted by the current formatter
*/
public function findPk($key, $con = null)
{
if ((null !== ($obj = CcStampContentsPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {
// the object is alredy in the instance pool
return $obj;
} else {
// the object has not been requested yet, or the formatter is not an object formatter
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria
->filterByPrimaryKey($key)
->getSelectStatement($con);
return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
}
}
/**
* Find objects by primary key
* <code>
* $objs = $c->findPks(array(12, 56, 832), $con);
* </code>
* @param array $keys Primary keys to use for the query
* @param PropelPDO $con an optional connection object
*
* @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter
*/
public function findPks($keys, $con = null)
{
$criteria = $this->isKeepQuery() ? clone $this : $this;
return $this
->filterByPrimaryKeys($keys)
->find($con);
}
/**
* Filter the query by primary key
*
* @param mixed $key Primary key to use for the query
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByPrimaryKey($key)
{
return $this->addUsingAlias(CcStampContentsPeer::ID, $key, Criteria::EQUAL);
}
/**
* Filter the query by a list of primary keys
*
* @param array $keys The list of primary key to use for the query
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByPrimaryKeys($keys)
{
return $this->addUsingAlias(CcStampContentsPeer::ID, $keys, Criteria::IN);
}
/**
* Filter the query on the id column
*
* @param int|array $dbId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbId($dbId = null, $comparison = null)
{
if (is_array($dbId) && null === $comparison) {
$comparison = Criteria::IN;
}
return $this->addUsingAlias(CcStampContentsPeer::ID, $dbId, $comparison);
}
/**
* Filter the query on the stamp_id column
*
* @param int|array $dbStampId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbStampId($dbStampId = null, $comparison = null)
{
if (is_array($dbStampId)) {
$useMinMax = false;
if (isset($dbStampId['min'])) {
$this->addUsingAlias(CcStampContentsPeer::STAMP_ID, $dbStampId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbStampId['max'])) {
$this->addUsingAlias(CcStampContentsPeer::STAMP_ID, $dbStampId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampContentsPeer::STAMP_ID, $dbStampId, $comparison);
}
/**
* Filter the query on the file_id column
*
* @param int|array $dbFileId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbFileId($dbFileId = null, $comparison = null)
{
if (is_array($dbFileId)) {
$useMinMax = false;
if (isset($dbFileId['min'])) {
$this->addUsingAlias(CcStampContentsPeer::FILE_ID, $dbFileId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbFileId['max'])) {
$this->addUsingAlias(CcStampContentsPeer::FILE_ID, $dbFileId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampContentsPeer::FILE_ID, $dbFileId, $comparison);
}
/**
* Filter the query on the stream_id column
*
* @param int|array $dbStreamId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbStreamId($dbStreamId = null, $comparison = null)
{
if (is_array($dbStreamId)) {
$useMinMax = false;
if (isset($dbStreamId['min'])) {
$this->addUsingAlias(CcStampContentsPeer::STREAM_ID, $dbStreamId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbStreamId['max'])) {
$this->addUsingAlias(CcStampContentsPeer::STREAM_ID, $dbStreamId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampContentsPeer::STREAM_ID, $dbStreamId, $comparison);
}
/**
* Filter the query on the block_id column
*
* @param int|array $dbBlockId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbBlockId($dbBlockId = null, $comparison = null)
{
if (is_array($dbBlockId)) {
$useMinMax = false;
if (isset($dbBlockId['min'])) {
$this->addUsingAlias(CcStampContentsPeer::BLOCK_ID, $dbBlockId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbBlockId['max'])) {
$this->addUsingAlias(CcStampContentsPeer::BLOCK_ID, $dbBlockId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampContentsPeer::BLOCK_ID, $dbBlockId, $comparison);
}
/**
* Filter the query on the playlist_id column
*
* @param int|array $dbPlaylistId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbPlaylistId($dbPlaylistId = null, $comparison = null)
{
if (is_array($dbPlaylistId)) {
$useMinMax = false;
if (isset($dbPlaylistId['min'])) {
$this->addUsingAlias(CcStampContentsPeer::PLAYLIST_ID, $dbPlaylistId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbPlaylistId['max'])) {
$this->addUsingAlias(CcStampContentsPeer::PLAYLIST_ID, $dbPlaylistId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampContentsPeer::PLAYLIST_ID, $dbPlaylistId, $comparison);
}
/**
* Filter the query on the position column
*
* @param int|array $dbPosition The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbPosition($dbPosition = null, $comparison = null)
{
if (is_array($dbPosition)) {
$useMinMax = false;
if (isset($dbPosition['min'])) {
$this->addUsingAlias(CcStampContentsPeer::POSITION, $dbPosition['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbPosition['max'])) {
$this->addUsingAlias(CcStampContentsPeer::POSITION, $dbPosition['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampContentsPeer::POSITION, $dbPosition, $comparison);
}
/**
* Filter the query on the clip_length column
*
* @param string $dbClipLength 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 CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbClipLength($dbClipLength = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbClipLength)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbClipLength)) {
$dbClipLength = str_replace('*', '%', $dbClipLength);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcStampContentsPeer::CLIP_LENGTH, $dbClipLength, $comparison);
}
/**
* Filter the query on the cue_in column
*
* @param string $dbCueIn 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 CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbCueIn($dbCueIn = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbCueIn)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbCueIn)) {
$dbCueIn = str_replace('*', '%', $dbCueIn);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcStampContentsPeer::CUE_IN, $dbCueIn, $comparison);
}
/**
* Filter the query on the cue_out column
*
* @param string $dbCueOut 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 CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbCueOut($dbCueOut = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbCueOut)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbCueOut)) {
$dbCueOut = str_replace('*', '%', $dbCueOut);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcStampContentsPeer::CUE_OUT, $dbCueOut, $comparison);
}
/**
* Filter the query on the fade_in column
*
* @param string $dbFadeIn 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 CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbFadeIn($dbFadeIn = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbFadeIn)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbFadeIn)) {
$dbFadeIn = str_replace('*', '%', $dbFadeIn);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcStampContentsPeer::FADE_IN, $dbFadeIn, $comparison);
}
/**
* Filter the query on the fade_out column
*
* @param string $dbFadeOut 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 CcStampContentsQuery The current query, for fluid interface
*/
public function filterByDbFadeOut($dbFadeOut = null, $comparison = null)
{
if (null === $comparison) {
if (is_array($dbFadeOut)) {
$comparison = Criteria::IN;
} elseif (preg_match('/[\%\*]/', $dbFadeOut)) {
$dbFadeOut = str_replace('*', '%', $dbFadeOut);
$comparison = Criteria::LIKE;
}
}
return $this->addUsingAlias(CcStampContentsPeer::FADE_OUT, $dbFadeOut, $comparison);
}
/**
* Filter the query by a related CcStamp object
*
* @param CcStamp $ccStamp the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByCcStamp($ccStamp, $comparison = null)
{
return $this
->addUsingAlias(CcStampContentsPeer::STAMP_ID, $ccStamp->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStamp relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function joinCcStamp($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStamp');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStamp');
}
return $this;
}
/**
* Use the CcStamp relation CcStamp object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampQuery A secondary query class using the current class as primary query
*/
public function useCcStampQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
return $this
->joinCcStamp($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStamp', 'CcStampQuery');
}
/**
* Filter the query by a related CcFiles object
*
* @param CcFiles $ccFiles the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByCcFiles($ccFiles, $comparison = null)
{
return $this
->addUsingAlias(CcStampContentsPeer::FILE_ID, $ccFiles->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcFiles relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function joinCcFiles($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcFiles');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcFiles');
}
return $this;
}
/**
* Use the CcFiles relation CcFiles object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcFilesQuery A secondary query class using the current class as primary query
*/
public function useCcFilesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcFiles($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcFiles', 'CcFilesQuery');
}
/**
* Filter the query by a related CcWebstream object
*
* @param CcWebstream $ccWebstream the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByCcWebstream($ccWebstream, $comparison = null)
{
return $this
->addUsingAlias(CcStampContentsPeer::STREAM_ID, $ccWebstream->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcWebstream relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function joinCcWebstream($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcWebstream');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcWebstream');
}
return $this;
}
/**
* Use the CcWebstream relation CcWebstream object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcWebstreamQuery A secondary query class using the current class as primary query
*/
public function useCcWebstreamQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcWebstream($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcWebstream', 'CcWebstreamQuery');
}
/**
* Filter the query by a related CcBlock object
*
* @param CcBlock $ccBlock the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByCcBlock($ccBlock, $comparison = null)
{
return $this
->addUsingAlias(CcStampContentsPeer::BLOCK_ID, $ccBlock->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcBlock relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function joinCcBlock($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcBlock');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcBlock');
}
return $this;
}
/**
* Use the CcBlock relation CcBlock object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcBlockQuery A secondary query class using the current class as primary query
*/
public function useCcBlockQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcBlock($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcBlock', 'CcBlockQuery');
}
/**
* Filter the query by a related CcPlaylist object
*
* @param CcPlaylist $ccPlaylist the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function filterByCcPlaylist($ccPlaylist, $comparison = null)
{
return $this
->addUsingAlias(CcStampContentsPeer::PLAYLIST_ID, $ccPlaylist->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcPlaylist relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function joinCcPlaylist($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcPlaylist');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcPlaylist');
}
return $this;
}
/**
* Use the CcPlaylist relation CcPlaylist object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcPlaylistQuery A secondary query class using the current class as primary query
*/
public function useCcPlaylistQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcPlaylist($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcPlaylist', 'CcPlaylistQuery');
}
/**
* Exclude object from result
*
* @param CcStampContents $ccStampContents Object to remove from the list of results
*
* @return CcStampContentsQuery The current query, for fluid interface
*/
public function prune($ccStampContents = null)
{
if ($ccStampContents) {
$this->addUsingAlias(CcStampContentsPeer::ID, $ccStampContents->getDbId(), Criteria::NOT_EQUAL);
}
return $this;
}
} // BaseCcStampContentsQuery

File diff suppressed because it is too large Load diff

View file

@ -1,460 +0,0 @@
<?php
/**
* Base class that represents a query for the 'cc_stamp' table.
*
*
*
* @method CcStampQuery orderByDbId($order = Criteria::ASC) Order by the id column
* @method CcStampQuery orderByDbShowId($order = Criteria::ASC) Order by the show_id column
* @method CcStampQuery orderByDbInstanceId($order = Criteria::ASC) Order by the instance_id column
* @method CcStampQuery orderByDbLinked($order = Criteria::ASC) Order by the linked column
*
* @method CcStampQuery groupByDbId() Group by the id column
* @method CcStampQuery groupByDbShowId() Group by the show_id column
* @method CcStampQuery groupByDbInstanceId() Group by the instance_id column
* @method CcStampQuery groupByDbLinked() Group by the linked column
*
* @method CcStampQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
* @method CcStampQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
* @method CcStampQuery innerJoin($relation) Adds a INNER JOIN clause to the query
*
* @method CcStampQuery leftJoinCcShow($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShow relation
* @method CcStampQuery rightJoinCcShow($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShow relation
* @method CcStampQuery innerJoinCcShow($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShow relation
*
* @method CcStampQuery leftJoinCcShowInstances($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcShowInstances relation
* @method CcStampQuery rightJoinCcShowInstances($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcShowInstances relation
* @method CcStampQuery innerJoinCcShowInstances($relationAlias = '') Adds a INNER JOIN clause to the query using the CcShowInstances relation
*
* @method CcStampQuery leftJoinCcStampContents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStampContents relation
* @method CcStampQuery rightJoinCcStampContents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStampContents relation
* @method CcStampQuery innerJoinCcStampContents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStampContents relation
*
* @method CcStamp findOne(PropelPDO $con = null) Return the first CcStamp matching the query
* @method CcStamp findOneOrCreate(PropelPDO $con = null) Return the first CcStamp matching the query, or a new CcStamp object populated from the query conditions when no match is found
*
* @method CcStamp findOneByDbId(int $id) Return the first CcStamp filtered by the id column
* @method CcStamp findOneByDbShowId(int $show_id) Return the first CcStamp filtered by the show_id column
* @method CcStamp findOneByDbInstanceId(int $instance_id) Return the first CcStamp filtered by the instance_id column
* @method CcStamp findOneByDbLinked(boolean $linked) Return the first CcStamp filtered by the linked column
*
* @method array findByDbId(int $id) Return CcStamp objects filtered by the id column
* @method array findByDbShowId(int $show_id) Return CcStamp objects filtered by the show_id column
* @method array findByDbInstanceId(int $instance_id) Return CcStamp objects filtered by the instance_id column
* @method array findByDbLinked(boolean $linked) Return CcStamp objects filtered by the linked column
*
* @package propel.generator.airtime.om
*/
abstract class BaseCcStampQuery extends ModelCriteria
{
/**
* Initializes internal state of BaseCcStampQuery object.
*
* @param string $dbName The dabase name
* @param string $modelName The phpName of a model, e.g. 'Book'
* @param string $modelAlias The alias for the model in this query, e.g. 'b'
*/
public function __construct($dbName = 'airtime', $modelName = 'CcStamp', $modelAlias = null)
{
parent::__construct($dbName, $modelName, $modelAlias);
}
/**
* Returns a new CcStampQuery object.
*
* @param string $modelAlias The alias of a model in the query
* @param Criteria $criteria Optional Criteria to build the query from
*
* @return CcStampQuery
*/
public static function create($modelAlias = null, $criteria = null)
{
if ($criteria instanceof CcStampQuery) {
return $criteria;
}
$query = new CcStampQuery();
if (null !== $modelAlias) {
$query->setModelAlias($modelAlias);
}
if ($criteria instanceof Criteria) {
$query->mergeWith($criteria);
}
return $query;
}
/**
* Find object by primary key
* Use instance pooling to avoid a database query if the object exists
* <code>
* $obj = $c->findPk(12, $con);
* </code>
* @param mixed $key Primary key to use for the query
* @param PropelPDO $con an optional connection object
*
* @return CcStamp|array|mixed the result, formatted by the current formatter
*/
public function findPk($key, $con = null)
{
if ((null !== ($obj = CcStampPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {
// the object is alredy in the instance pool
return $obj;
} else {
// the object has not been requested yet, or the formatter is not an object formatter
$criteria = $this->isKeepQuery() ? clone $this : $this;
$stmt = $criteria
->filterByPrimaryKey($key)
->getSelectStatement($con);
return $criteria->getFormatter()->init($criteria)->formatOne($stmt);
}
}
/**
* Find objects by primary key
* <code>
* $objs = $c->findPks(array(12, 56, 832), $con);
* </code>
* @param array $keys Primary keys to use for the query
* @param PropelPDO $con an optional connection object
*
* @return PropelObjectCollection|array|mixed the list of results, formatted by the current formatter
*/
public function findPks($keys, $con = null)
{
$criteria = $this->isKeepQuery() ? clone $this : $this;
return $this
->filterByPrimaryKeys($keys)
->find($con);
}
/**
* Filter the query by primary key
*
* @param mixed $key Primary key to use for the query
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByPrimaryKey($key)
{
return $this->addUsingAlias(CcStampPeer::ID, $key, Criteria::EQUAL);
}
/**
* Filter the query by a list of primary keys
*
* @param array $keys The list of primary key to use for the query
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByPrimaryKeys($keys)
{
return $this->addUsingAlias(CcStampPeer::ID, $keys, Criteria::IN);
}
/**
* Filter the query on the id column
*
* @param int|array $dbId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByDbId($dbId = null, $comparison = null)
{
if (is_array($dbId) && null === $comparison) {
$comparison = Criteria::IN;
}
return $this->addUsingAlias(CcStampPeer::ID, $dbId, $comparison);
}
/**
* Filter the query on the show_id column
*
* @param int|array $dbShowId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByDbShowId($dbShowId = null, $comparison = null)
{
if (is_array($dbShowId)) {
$useMinMax = false;
if (isset($dbShowId['min'])) {
$this->addUsingAlias(CcStampPeer::SHOW_ID, $dbShowId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbShowId['max'])) {
$this->addUsingAlias(CcStampPeer::SHOW_ID, $dbShowId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampPeer::SHOW_ID, $dbShowId, $comparison);
}
/**
* Filter the query on the instance_id column
*
* @param int|array $dbInstanceId The value to use as filter.
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByDbInstanceId($dbInstanceId = null, $comparison = null)
{
if (is_array($dbInstanceId)) {
$useMinMax = false;
if (isset($dbInstanceId['min'])) {
$this->addUsingAlias(CcStampPeer::INSTANCE_ID, $dbInstanceId['min'], Criteria::GREATER_EQUAL);
$useMinMax = true;
}
if (isset($dbInstanceId['max'])) {
$this->addUsingAlias(CcStampPeer::INSTANCE_ID, $dbInstanceId['max'], Criteria::LESS_EQUAL);
$useMinMax = true;
}
if ($useMinMax) {
return $this;
}
if (null === $comparison) {
$comparison = Criteria::IN;
}
}
return $this->addUsingAlias(CcStampPeer::INSTANCE_ID, $dbInstanceId, $comparison);
}
/**
* Filter the query on the linked column
*
* @param boolean|string $dbLinked The value to use as filter.
* Accepts strings ('false', 'off', '-', 'no', 'n', and '0' are false, the rest is true)
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByDbLinked($dbLinked = null, $comparison = null)
{
if (is_string($dbLinked)) {
$linked = in_array(strtolower($dbLinked), array('false', 'off', '-', 'no', 'n', '0')) ? false : true;
}
return $this->addUsingAlias(CcStampPeer::LINKED, $dbLinked, $comparison);
}
/**
* Filter the query by a related CcShow object
*
* @param CcShow $ccShow the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByCcShow($ccShow, $comparison = null)
{
return $this
->addUsingAlias(CcStampPeer::SHOW_ID, $ccShow->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcShow relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampQuery The current query, for fluid interface
*/
public function joinCcShow($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcShow');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcShow');
}
return $this;
}
/**
* Use the CcShow relation CcShow object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcShowQuery A secondary query class using the current class as primary query
*/
public function useCcShowQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
return $this
->joinCcShow($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcShow', 'CcShowQuery');
}
/**
* Filter the query by a related CcShowInstances object
*
* @param CcShowInstances $ccShowInstances the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByCcShowInstances($ccShowInstances, $comparison = null)
{
return $this
->addUsingAlias(CcStampPeer::INSTANCE_ID, $ccShowInstances->getDbId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcShowInstances relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampQuery The current query, for fluid interface
*/
public function joinCcShowInstances($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcShowInstances');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcShowInstances');
}
return $this;
}
/**
* Use the CcShowInstances relation CcShowInstances object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcShowInstancesQuery A secondary query class using the current class as primary query
*/
public function useCcShowInstancesQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcShowInstances($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcShowInstances', 'CcShowInstancesQuery');
}
/**
* Filter the query by a related CcStampContents object
*
* @param CcStampContents $ccStampContents the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcStampQuery The current query, for fluid interface
*/
public function filterByCcStampContents($ccStampContents, $comparison = null)
{
return $this
->addUsingAlias(CcStampPeer::ID, $ccStampContents->getDbStampId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStampContents relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampQuery The current query, for fluid interface
*/
public function joinCcStampContents($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStampContents');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStampContents');
}
return $this;
}
/**
* Use the CcStampContents relation CcStampContents object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery A secondary query class using the current class as primary query
*/
public function useCcStampContentsQuery($relationAlias = '', $joinType = Criteria::INNER_JOIN)
{
return $this
->joinCcStampContents($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStampContents', 'CcStampContentsQuery');
}
/**
* Exclude object from result
*
* @param CcStamp $ccStamp Object to remove from the list of results
*
* @return CcStampQuery The current query, for fluid interface
*/
public function prune($ccStamp = null)
{
if ($ccStamp) {
$this->addUsingAlias(CcStampPeer::ID, $ccStamp->getDbId(), Criteria::NOT_EQUAL);
}
return $this;
}
} // BaseCcStampQuery

View file

@ -90,11 +90,6 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
*/
protected $collCcSchedules;
/**
* @var array CcStampContents[] Collection to store aggregation of CcStampContents objects.
*/
protected $collCcStampContentss;
/**
* Flag to prevent endless save loop, if this object is referenced
* by another object which falls in this transaction.
@ -704,8 +699,6 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
$this->collCcSchedules = null;
$this->collCcStampContentss = null;
} // if (deep)
}
@ -847,14 +840,6 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->isDeleted()) {
$affectedRows += $referrerFK->save($con);
}
}
}
$this->alreadyInSave = false;
}
@ -934,14 +919,6 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
}
}
if ($this->collCcStampContentss !== null) {
foreach ($this->collCcStampContentss as $referrerFK) {
if (!$referrerFK->validate($columns)) {
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
}
}
}
$this->alreadyInValidation = false;
}
@ -1236,12 +1213,6 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
}
}
foreach ($this->getCcStampContentss() as $relObj) {
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
$copyObj->addCcStampContents($relObj->copy($deepCopy));
}
}
} // if ($deepCopy)
@ -1446,215 +1417,6 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
return $this->getCcSchedules($query, $con);
}
/**
* Clears out the collCcStampContentss collection
*
* This does not modify the database; however, it will remove any associated objects, causing
* them to be refetched by subsequent calls to accessor method.
*
* @return void
* @see addCcStampContentss()
*/
public function clearCcStampContentss()
{
$this->collCcStampContentss = null; // important to set this to NULL since that means it is uninitialized
}
/**
* Initializes the collCcStampContentss collection.
*
* By default this just sets the collCcStampContentss collection to an empty array (like clearcollCcStampContentss());
* however, you may wish to override this method in your stub class to provide setting appropriate
* to your application -- for example, setting the initial array to the values stored in database.
*
* @return void
*/
public function initCcStampContentss()
{
$this->collCcStampContentss = new PropelObjectCollection();
$this->collCcStampContentss->setModel('CcStampContents');
}
/**
* Gets an array of CcStampContents objects which contain a foreign key that references this object.
*
* If the $criteria is not null, it is used to always fetch the results from the database.
* Otherwise the results are fetched from the database the first time, then cached.
* Next time the same method is called without $criteria, the cached collection is returned.
* If this CcWebstream is new, it will return
* an empty collection or the current collection; the criteria is ignored on a new object.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
* @throws PropelException
*/
public function getCcStampContentss($criteria = null, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
// return empty collection
$this->initCcStampContentss();
} else {
$collCcStampContentss = CcStampContentsQuery::create(null, $criteria)
->filterByCcWebstream($this)
->find($con);
if (null !== $criteria) {
return $collCcStampContentss;
}
$this->collCcStampContentss = $collCcStampContentss;
}
}
return $this->collCcStampContentss;
}
/**
* Returns the number of related CcStampContents objects.
*
* @param Criteria $criteria
* @param boolean $distinct
* @param PropelPDO $con
* @return int Count of related CcStampContents objects.
* @throws PropelException
*/
public function countCcStampContentss(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
{
if(null === $this->collCcStampContentss || null !== $criteria) {
if ($this->isNew() && null === $this->collCcStampContentss) {
return 0;
} else {
$query = CcStampContentsQuery::create(null, $criteria);
if($distinct) {
$query->distinct();
}
return $query
->filterByCcWebstream($this)
->count($con);
}
} else {
return count($this->collCcStampContentss);
}
}
/**
* Method called to associate a CcStampContents object to this object
* through the CcStampContents foreign key attribute.
*
* @param CcStampContents $l CcStampContents
* @return void
* @throws PropelException
*/
public function addCcStampContents(CcStampContents $l)
{
if ($this->collCcStampContentss === null) {
$this->initCcStampContentss();
}
if (!$this->collCcStampContentss->contains($l)) { // only add it if the **same** object is not already associated
$this->collCcStampContentss[]= $l;
$l->setCcWebstream($this);
}
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcWebstream is new, it will return
* an empty collection; or if this CcWebstream has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcWebstream.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcStamp($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcStamp', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcWebstream is new, it will return
* an empty collection; or if this CcWebstream has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcWebstream.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcFiles($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcFiles', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcWebstream is new, it will return
* an empty collection; or if this CcWebstream has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcWebstream.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcBlock($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcBlock', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcWebstream is new, it will return
* an empty collection; or if this CcWebstream has previously
* been saved, it will retrieve related CcStampContentss from storage.
*
* This method is protected by default in order to keep the public
* api reasonable. You can provide public methods for those you
* actually need in CcWebstream.
*
* @param Criteria $criteria optional Criteria object to narrow the query
* @param PropelPDO $con optional connection object
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
* @return PropelCollection|array CcStampContents[] List of CcStampContents objects
*/
public function getCcStampContentssJoinCcPlaylist($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcStampContentsQuery::create(null, $criteria);
$query->joinWith('CcPlaylist', $join_behavior);
return $this->getCcStampContentss($query, $con);
}
/**
* Clears the current object and sets all attributes to their default values
*/
@ -1696,15 +1458,9 @@ abstract class BaseCcWebstream extends BaseObject implements Persistent
$o->clearAllReferences($deep);
}
}
if ($this->collCcStampContentss) {
foreach ((array) $this->collCcStampContentss as $o) {
$o->clearAllReferences($deep);
}
}
} // if ($deep)
$this->collCcSchedules = null;
$this->collCcStampContentss = null;
}
/**

View file

@ -386,9 +386,6 @@ abstract class BaseCcWebstreamPeer {
// Invalidate objects in CcSchedulePeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcSchedulePeer::clearInstancePool();
// Invalidate objects in CcStampContentsPeer instance pool,
// since one or more of them may be deleted by ON DELETE CASCADE/SETNULL rule.
CcStampContentsPeer::clearInstancePool();
}
/**

View file

@ -36,10 +36,6 @@
* @method CcWebstreamQuery rightJoinCcSchedule($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSchedule relation
* @method CcWebstreamQuery innerJoinCcSchedule($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSchedule relation
*
* @method CcWebstreamQuery leftJoinCcStampContents($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcStampContents relation
* @method CcWebstreamQuery rightJoinCcStampContents($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcStampContents relation
* @method CcWebstreamQuery innerJoinCcStampContents($relationAlias = '') Adds a INNER JOIN clause to the query using the CcStampContents relation
*
* @method CcWebstream findOne(PropelPDO $con = null) Return the first CcWebstream matching the query
* @method CcWebstream findOneOrCreate(PropelPDO $con = null) Return the first CcWebstream matching the query, or a new CcWebstream object populated from the query conditions when no match is found
*
@ -488,70 +484,6 @@ abstract class BaseCcWebstreamQuery extends ModelCriteria
->useQuery($relationAlias ? $relationAlias : 'CcSchedule', 'CcScheduleQuery');
}
/**
* Filter the query by a related CcStampContents object
*
* @param CcStampContents $ccStampContents the related object to use as filter
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
*
* @return CcWebstreamQuery The current query, for fluid interface
*/
public function filterByCcStampContents($ccStampContents, $comparison = null)
{
return $this
->addUsingAlias(CcWebstreamPeer::ID, $ccStampContents->getDbStreamId(), $comparison);
}
/**
* Adds a JOIN clause to the query using the CcStampContents relation
*
* @param string $relationAlias optional alias for the relation
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcWebstreamQuery The current query, for fluid interface
*/
public function joinCcStampContents($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
$tableMap = $this->getTableMap();
$relationMap = $tableMap->getRelation('CcStampContents');
// create a ModelJoin object for this join
$join = new ModelJoin();
$join->setJoinType($joinType);
$join->setRelationMap($relationMap, $this->useAliasInSQL ? $this->getModelAlias() : null, $relationAlias);
if ($previousJoin = $this->getPreviousJoin()) {
$join->setPreviousJoin($previousJoin);
}
// add the ModelJoin to the current object
if($relationAlias) {
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
$this->addJoinObject($join, $relationAlias);
} else {
$this->addJoinObject($join, 'CcStampContents');
}
return $this;
}
/**
* Use the CcStampContents relation CcStampContents object
*
* @see useQuery()
*
* @param string $relationAlias optional alias for the relation,
* to be used as main alias in the secondary query
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
*
* @return CcStampContentsQuery A secondary query class using the current class as primary query
*/
public function useCcStampContentsQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
{
return $this
->joinCcStampContents($relationAlias, $joinType)
->useQuery($relationAlias ? $relationAlias : 'CcStampContents', 'CcStampContentsQuery');
}
/**
* Exclude object from result
*

View file

@ -327,8 +327,7 @@
We need to know this for logging playout history. (It only gets logged when
broadcasted = 1)
-->
<column name="stamp_id" phpName="DbStampId" type="INTEGER" required="true" default="0" />
<column name="stamp_content_id" phpName="DbStampContentId" type="INTEGER" required="true" default="0" />
<column name="position" phpName="DbPosition" type="INTEGER" required="true" default="0" />
<!-- This foreign key is still useful even though it may seem we don't ever delete cc_show_instances anymore.
We will do delete them in some cases (when editing a show and changing the repeating days of the week
for example. \
@ -342,9 +341,6 @@
<foreign-key foreignTable="cc_webstream" name="cc_show_stream_fkey" onDelete="CASCADE">
<reference local="stream_id" foreign="id"/>
</foreign-key>
<!-- <foreign-key foreignTable="cc_stamp" name="cc_schedule_stamp_id_fkey" onDelete="CASCADE">
<reference local="stamp_id" foreign="id" />
</foreign-key> -->
<index name="cc_schedule_instance_id_idx">
<index-column name="instance_id"/>
</index>
@ -478,45 +474,4 @@
<column name="locale_code" phpName="DbLocaleCode" type="VARCHAR" size="16" required="true" />
<column name="locale_lang" phpName="DbLocaleLang" type="VARCHAR" size="128" required="true" />
</table>
<table name="cc_stamp_contents" phpName="CcStampContents">
<column name="id" phpName="DbId" primaryKey="true" type="INTEGER" autoIncrement="true" required="true" />
<column name="stamp_id" phpName="DbStampId" type="INTEGER" required="true" />
<column name="file_id" phpName="DbFileId" type="INTEGER" required="false" />
<column name="stream_id" phpName="DbStreamId" type="INTEGER" required="false" />
<column name="block_id" phpName="DbBlockId" type="INTEGER" required="false" />
<column name="playlist_id" phpName="DbPlaylistId" type="INTEGER" required="false" />
<column name="position" phpName="DbPosition" type="INTEGER" required="false" />
<column name="clip_length" phpName="DbClipLength" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
<column name="cue_in" phpName="DbCueIn" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
<column name="cue_out" phpName="DbCueOut" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
<column name="fade_in" phpName="DbFadeIn" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
<column name="fade_out" phpName="DbFadeOut" type="VARCHAR" sqlType="interval" required="false" defaultValue="00:00:00" />
<foreign-key foreignTable="cc_stamp" name="cc_stamp_contents_stamp_id_fkey" onDelete="CASCADE">
<reference local="stamp_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="cc_files" name="cc_stamp_contents_file_id_fkey" onDelete="CASCADE">
<reference local="file_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="cc_webstream" name="cc_stamp_contents_stream_id_fkey" onDelete="CASCADE">
<reference local="stream_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="cc_block" name="cc_stamp_contents_block_id_fkey" onDelete="CASCADE">
<reference local="block_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="cc_playlist" name="cc_stamp_contents_playlist_id_fkey" onDelete="CASCADE">
<reference local="playlist_id" foreign="id" />
</foreign-key>
</table>
<table name="cc_stamp" phpName="CcStamp">
<column name="id" phpName="DbId" primaryKey="true" type="INTEGER" autoIncrement="true" required="true" />
<column name="show_id" phpName="DbShowId" type="INTEGER" required="true" />
<column name="instance_id" phpName="DbInstanceId" type="INTEGER" required="false" />
<column name="linked" phpName="DbLinked" type="BOOLEAN" required="true" />
<foreign-key foreignTable="cc_show" name="cc_stamp_show_id_fkey" onDelete="CASCADE">
<reference local="show_id" foreign="id" />
</foreign-key>
<foreign-key foreignTable="cc_show_instances" name="cc_stamp_instance_id_fkey" onDelete="CASCADE">
<reference local="instance_id" foreign="id" />
</foreign-key>
</table>
</database>

View file

@ -427,8 +427,7 @@ CREATE TABLE "cc_schedule"
"instance_id" INTEGER NOT NULL,
"playout_status" INT2 default 1 NOT NULL,
"broadcasted" INT2 default 0 NOT NULL,
"stamp_id" INTEGER default 0 NOT NULL,
"stamp_content_id" INTEGER default 0 NOT NULL,
"position" INTEGER default 0 NOT NULL,
PRIMARY KEY ("id")
);
@ -750,54 +749,6 @@ CREATE TABLE "cc_locale"
COMMENT ON TABLE "cc_locale" IS '';
SET search_path TO public;
-----------------------------------------------------------------------------
-- cc_stamp_contents
-----------------------------------------------------------------------------
DROP TABLE "cc_stamp_contents" CASCADE;
CREATE TABLE "cc_stamp_contents"
(
"id" serial NOT NULL,
"stamp_id" INTEGER NOT NULL,
"file_id" INTEGER,
"stream_id" INTEGER,
"block_id" INTEGER,
"playlist_id" INTEGER,
"position" INTEGER,
"clip_length" interval default '00:00:00',
"cue_in" interval default '00:00:00',
"cue_out" interval default '00:00:00',
"fade_in" interval default '00:00:00',
"fade_out" interval default '00:00:00',
PRIMARY KEY ("id")
);
COMMENT ON TABLE "cc_stamp_contents" IS '';
SET search_path TO public;
-----------------------------------------------------------------------------
-- cc_stamp
-----------------------------------------------------------------------------
DROP TABLE "cc_stamp" CASCADE;
CREATE TABLE "cc_stamp"
(
"id" serial NOT NULL,
"show_id" INTEGER NOT NULL,
"instance_id" INTEGER,
"linked" BOOLEAN NOT NULL,
PRIMARY KEY ("id")
);
COMMENT ON TABLE "cc_stamp" IS '';
SET search_path TO public;
ALTER TABLE "cc_files" ADD CONSTRAINT "cc_files_owner_fkey" FOREIGN KEY ("owner_id") REFERENCES "cc_subjs" ("id");
@ -854,17 +805,3 @@ ALTER TABLE "cc_webstream_metadata" ADD CONSTRAINT "cc_schedule_inst_fkey" FOREI
ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_timestamp_inst_fkey" FOREIGN KEY ("timestamp_id") REFERENCES "cc_timestamp" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_listener_count" ADD CONSTRAINT "cc_mount_name_inst_fkey" FOREIGN KEY ("mount_name_id") REFERENCES "cc_mount_name" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_stamp_id_fkey" FOREIGN KEY ("stamp_id") REFERENCES "cc_stamp" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_file_id_fkey" FOREIGN KEY ("file_id") REFERENCES "cc_files" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_stream_id_fkey" FOREIGN KEY ("stream_id") REFERENCES "cc_webstream" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_block_id_fkey" FOREIGN KEY ("block_id") REFERENCES "cc_block" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp_contents" ADD CONSTRAINT "cc_stamp_contents_playlist_id_fkey" FOREIGN KEY ("playlist_id") REFERENCES "cc_playlist" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp" ADD CONSTRAINT "cc_stamp_show_id_fkey" FOREIGN KEY ("show_id") REFERENCES "cc_show" ("id") ON DELETE CASCADE;
ALTER TABLE "cc_stamp" ADD CONSTRAINT "cc_stamp_instance_id_fkey" FOREIGN KEY ("instance_id") REFERENCES "cc_show_instances" ("id") ON DELETE CASCADE;