fix: use constrained foreign key for files track_type

This commit is contained in:
jo 2022-06-08 16:31:01 +02:00 committed by Kyle Robbertze
parent bcaea16c19
commit db976881f0
26 changed files with 1233 additions and 113 deletions

View file

@ -2146,6 +2146,31 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
return $this;
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcSubjs is new, it will return
* an empty collection; or if this CcSubjs has previously
* been saved, it will retrieve related CcFilessRelatedByDbOwnerId 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 CcSubjs.
*
* @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 PropelObjectCollection|CcFiles[] List of CcFiles objects
*/
public function getCcFilessRelatedByDbOwnerIdJoinCcTracktypes($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcFilesQuery::create(null, $criteria);
$query->joinWith('CcTracktypes', $join_behavior);
return $this->getCcFilessRelatedByDbOwnerId($query, $con);
}
/**
* Clears out the collCcFilessRelatedByDbEditedby collection
*
@ -2371,6 +2396,31 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
return $this;
}
/**
* If this collection has already been initialized with
* an identical criteria, it returns the collection.
* Otherwise if this CcSubjs is new, it will return
* an empty collection; or if this CcSubjs has previously
* been saved, it will retrieve related CcFilessRelatedByDbEditedby 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 CcSubjs.
*
* @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 PropelObjectCollection|CcFiles[] List of CcFiles objects
*/
public function getCcFilessRelatedByDbEditedbyJoinCcTracktypes($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
{
$query = CcFilesQuery::create(null, $criteria);
$query->joinWith('CcTracktypes', $join_behavior);
return $this->getCcFilessRelatedByDbEditedby($query, $con);
}
/**
* Clears out the collCcShowHostss collection
*