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

@ -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;
}