CC-4961: Show linking
Removed stamp tables
This commit is contained in:
parent
9b2fb3bece
commit
9b4a0ba9c1
43 changed files with 55 additions and 10288 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue