Bunch of schema changes
This commit is contained in:
parent
c7dd2e7256
commit
cfb21f8425
28 changed files with 1647 additions and 5494 deletions
|
@ -20,7 +20,6 @@
|
|||
* @method PodcastQuery orderByDbItunesCategory($order = Criteria::ASC) Order by the itunes_category column
|
||||
* @method PodcastQuery orderByDbItunesExplicit($order = Criteria::ASC) Order by the itunes_explicit column
|
||||
* @method PodcastQuery orderByDbOwner($order = Criteria::ASC) Order by the owner column
|
||||
* @method PodcastQuery orderByDescendantClass($order = Criteria::ASC) Order by the descendant_class column
|
||||
*
|
||||
* @method PodcastQuery groupByDbId() Group by the id column
|
||||
* @method PodcastQuery groupByDbTitle() Group by the title column
|
||||
|
@ -36,7 +35,6 @@
|
|||
* @method PodcastQuery groupByDbItunesCategory() Group by the itunes_category column
|
||||
* @method PodcastQuery groupByDbItunesExplicit() Group by the itunes_explicit column
|
||||
* @method PodcastQuery groupByDbOwner() Group by the owner column
|
||||
* @method PodcastQuery groupByDescendantClass() Group by the descendant_class column
|
||||
*
|
||||
* @method PodcastQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
|
||||
* @method PodcastQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
||||
|
@ -46,10 +44,6 @@
|
|||
* @method PodcastQuery rightJoinCcSubjs($relationAlias = null) Adds a RIGHT JOIN clause to the query using the CcSubjs relation
|
||||
* @method PodcastQuery innerJoinCcSubjs($relationAlias = null) Adds a INNER JOIN clause to the query using the CcSubjs relation
|
||||
*
|
||||
* @method PodcastQuery leftJoinPodcastEpisodes($relationAlias = null) Adds a LEFT JOIN clause to the query using the PodcastEpisodes relation
|
||||
* @method PodcastQuery rightJoinPodcastEpisodes($relationAlias = null) Adds a RIGHT JOIN clause to the query using the PodcastEpisodes relation
|
||||
* @method PodcastQuery innerJoinPodcastEpisodes($relationAlias = null) Adds a INNER JOIN clause to the query using the PodcastEpisodes relation
|
||||
*
|
||||
* @method PodcastQuery leftJoinStationPodcast($relationAlias = null) Adds a LEFT JOIN clause to the query using the StationPodcast relation
|
||||
* @method PodcastQuery rightJoinStationPodcast($relationAlias = null) Adds a RIGHT JOIN clause to the query using the StationPodcast relation
|
||||
* @method PodcastQuery innerJoinStationPodcast($relationAlias = null) Adds a INNER JOIN clause to the query using the StationPodcast relation
|
||||
|
@ -58,6 +52,10 @@
|
|||
* @method PodcastQuery rightJoinImportedPodcast($relationAlias = null) Adds a RIGHT JOIN clause to the query using the ImportedPodcast relation
|
||||
* @method PodcastQuery innerJoinImportedPodcast($relationAlias = null) Adds a INNER JOIN clause to the query using the ImportedPodcast relation
|
||||
*
|
||||
* @method PodcastQuery leftJoinPodcastEpisodes($relationAlias = null) Adds a LEFT JOIN clause to the query using the PodcastEpisodes relation
|
||||
* @method PodcastQuery rightJoinPodcastEpisodes($relationAlias = null) Adds a RIGHT JOIN clause to the query using the PodcastEpisodes relation
|
||||
* @method PodcastQuery innerJoinPodcastEpisodes($relationAlias = null) Adds a INNER JOIN clause to the query using the PodcastEpisodes relation
|
||||
*
|
||||
* @method Podcast findOne(PropelPDO $con = null) Return the first Podcast matching the query
|
||||
* @method Podcast findOneOrCreate(PropelPDO $con = null) Return the first Podcast matching the query, or a new Podcast object populated from the query conditions when no match is found
|
||||
*
|
||||
|
@ -74,7 +72,6 @@
|
|||
* @method Podcast findOneByDbItunesCategory(string $itunes_category) Return the first Podcast filtered by the itunes_category column
|
||||
* @method Podcast findOneByDbItunesExplicit(string $itunes_explicit) Return the first Podcast filtered by the itunes_explicit column
|
||||
* @method Podcast findOneByDbOwner(int $owner) Return the first Podcast filtered by the owner column
|
||||
* @method Podcast findOneByDescendantClass(string $descendant_class) Return the first Podcast filtered by the descendant_class column
|
||||
*
|
||||
* @method array findByDbId(int $id) Return Podcast objects filtered by the id column
|
||||
* @method array findByDbTitle(string $title) Return Podcast objects filtered by the title column
|
||||
|
@ -90,7 +87,6 @@
|
|||
* @method array findByDbItunesCategory(string $itunes_category) Return Podcast objects filtered by the itunes_category column
|
||||
* @method array findByDbItunesExplicit(string $itunes_explicit) Return Podcast objects filtered by the itunes_explicit column
|
||||
* @method array findByDbOwner(int $owner) Return Podcast objects filtered by the owner column
|
||||
* @method array findByDescendantClass(string $descendant_class) Return Podcast objects filtered by the descendant_class column
|
||||
*
|
||||
* @package propel.generator.airtime.om
|
||||
*/
|
||||
|
@ -198,7 +194,7 @@ abstract class BasePodcastQuery extends ModelCriteria
|
|||
*/
|
||||
protected function findPkSimple($key, $con)
|
||||
{
|
||||
$sql = 'SELECT "id", "title", "creator", "description", "language", "copyright", "link", "itunes_author", "itunes_keywords", "itunes_summary", "itunes_subtitle", "itunes_category", "itunes_explicit", "owner", "descendant_class" FROM "podcast" WHERE "id" = :p0';
|
||||
$sql = 'SELECT "id", "title", "creator", "description", "language", "copyright", "link", "itunes_author", "itunes_keywords", "itunes_summary", "itunes_subtitle", "itunes_category", "itunes_explicit", "owner" FROM "podcast" WHERE "id" = :p0';
|
||||
try {
|
||||
$stmt = $con->prepare($sql);
|
||||
$stmt->bindValue(':p0', $key, PDO::PARAM_INT);
|
||||
|
@ -721,35 +717,6 @@ abstract class BasePodcastQuery extends ModelCriteria
|
|||
return $this->addUsingAlias(PodcastPeer::OWNER, $dbOwner, $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query on the descendant_class column
|
||||
*
|
||||
* Example usage:
|
||||
* <code>
|
||||
* $query->filterByDescendantClass('fooValue'); // WHERE descendant_class = 'fooValue'
|
||||
* $query->filterByDescendantClass('%fooValue%'); // WHERE descendant_class LIKE '%fooValue%'
|
||||
* </code>
|
||||
*
|
||||
* @param string $descendantClass 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 PodcastQuery The current query, for fluid interface
|
||||
*/
|
||||
public function filterByDescendantClass($descendantClass = null, $comparison = null)
|
||||
{
|
||||
if (null === $comparison) {
|
||||
if (is_array($descendantClass)) {
|
||||
$comparison = Criteria::IN;
|
||||
} elseif (preg_match('/[\%\*]/', $descendantClass)) {
|
||||
$descendantClass = str_replace('*', '%', $descendantClass);
|
||||
$comparison = Criteria::LIKE;
|
||||
}
|
||||
}
|
||||
|
||||
return $this->addUsingAlias(PodcastPeer::DESCENDANT_CLASS, $descendantClass, $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query by a related CcSubjs object
|
||||
*
|
||||
|
@ -826,6 +793,154 @@ abstract class BasePodcastQuery extends ModelCriteria
|
|||
->useQuery($relationAlias ? $relationAlias : 'CcSubjs', 'CcSubjsQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query by a related StationPodcast object
|
||||
*
|
||||
* @param StationPodcast|PropelObjectCollection $stationPodcast the related object to use as filter
|
||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
* @throws PropelException - if the provided filter is invalid.
|
||||
*/
|
||||
public function filterByStationPodcast($stationPodcast, $comparison = null)
|
||||
{
|
||||
if ($stationPodcast instanceof StationPodcast) {
|
||||
return $this
|
||||
->addUsingAlias(PodcastPeer::ID, $stationPodcast->getDbPodcastId(), $comparison);
|
||||
} elseif ($stationPodcast instanceof PropelObjectCollection) {
|
||||
return $this
|
||||
->useStationPodcastQuery()
|
||||
->filterByPrimaryKeys($stationPodcast->getPrimaryKeys())
|
||||
->endUse();
|
||||
} else {
|
||||
throw new PropelException('filterByStationPodcast() only accepts arguments of type StationPodcast or PropelCollection');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a JOIN clause to the query using the StationPodcast relation
|
||||
*
|
||||
* @param string $relationAlias optional alias for the relation
|
||||
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
*/
|
||||
public function joinStationPodcast($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
$tableMap = $this->getTableMap();
|
||||
$relationMap = $tableMap->getRelation('StationPodcast');
|
||||
|
||||
// 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, 'StationPodcast');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the StationPodcast relation StationPodcast 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 StationPodcastQuery A secondary query class using the current class as primary query
|
||||
*/
|
||||
public function useStationPodcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
return $this
|
||||
->joinStationPodcast($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'StationPodcast', 'StationPodcastQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query by a related ImportedPodcast object
|
||||
*
|
||||
* @param ImportedPodcast|PropelObjectCollection $importedPodcast the related object to use as filter
|
||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
* @throws PropelException - if the provided filter is invalid.
|
||||
*/
|
||||
public function filterByImportedPodcast($importedPodcast, $comparison = null)
|
||||
{
|
||||
if ($importedPodcast instanceof ImportedPodcast) {
|
||||
return $this
|
||||
->addUsingAlias(PodcastPeer::ID, $importedPodcast->getDbPodcastId(), $comparison);
|
||||
} elseif ($importedPodcast instanceof PropelObjectCollection) {
|
||||
return $this
|
||||
->useImportedPodcastQuery()
|
||||
->filterByPrimaryKeys($importedPodcast->getPrimaryKeys())
|
||||
->endUse();
|
||||
} else {
|
||||
throw new PropelException('filterByImportedPodcast() only accepts arguments of type ImportedPodcast or PropelCollection');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a JOIN clause to the query using the ImportedPodcast relation
|
||||
*
|
||||
* @param string $relationAlias optional alias for the relation
|
||||
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
*/
|
||||
public function joinImportedPodcast($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
$tableMap = $this->getTableMap();
|
||||
$relationMap = $tableMap->getRelation('ImportedPodcast');
|
||||
|
||||
// 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, 'ImportedPodcast');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the ImportedPodcast relation ImportedPodcast 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 ImportedPodcastQuery A secondary query class using the current class as primary query
|
||||
*/
|
||||
public function useImportedPodcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
return $this
|
||||
->joinImportedPodcast($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'ImportedPodcast', 'ImportedPodcastQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query by a related PodcastEpisodes object
|
||||
*
|
||||
|
@ -900,154 +1015,6 @@ abstract class BasePodcastQuery extends ModelCriteria
|
|||
->useQuery($relationAlias ? $relationAlias : 'PodcastEpisodes', 'PodcastEpisodesQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query by a related StationPodcast object
|
||||
*
|
||||
* @param StationPodcast|PropelObjectCollection $stationPodcast the related object to use as filter
|
||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
* @throws PropelException - if the provided filter is invalid.
|
||||
*/
|
||||
public function filterByStationPodcast($stationPodcast, $comparison = null)
|
||||
{
|
||||
if ($stationPodcast instanceof StationPodcast) {
|
||||
return $this
|
||||
->addUsingAlias(PodcastPeer::ID, $stationPodcast->getDbId(), $comparison);
|
||||
} elseif ($stationPodcast instanceof PropelObjectCollection) {
|
||||
return $this
|
||||
->useStationPodcastQuery()
|
||||
->filterByPrimaryKeys($stationPodcast->getPrimaryKeys())
|
||||
->endUse();
|
||||
} else {
|
||||
throw new PropelException('filterByStationPodcast() only accepts arguments of type StationPodcast or PropelCollection');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a JOIN clause to the query using the StationPodcast relation
|
||||
*
|
||||
* @param string $relationAlias optional alias for the relation
|
||||
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
*/
|
||||
public function joinStationPodcast($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
$tableMap = $this->getTableMap();
|
||||
$relationMap = $tableMap->getRelation('StationPodcast');
|
||||
|
||||
// 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, 'StationPodcast');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the StationPodcast relation StationPodcast 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 StationPodcastQuery A secondary query class using the current class as primary query
|
||||
*/
|
||||
public function useStationPodcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
return $this
|
||||
->joinStationPodcast($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'StationPodcast', 'StationPodcastQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the query by a related ImportedPodcast object
|
||||
*
|
||||
* @param ImportedPodcast|PropelObjectCollection $importedPodcast the related object to use as filter
|
||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
* @throws PropelException - if the provided filter is invalid.
|
||||
*/
|
||||
public function filterByImportedPodcast($importedPodcast, $comparison = null)
|
||||
{
|
||||
if ($importedPodcast instanceof ImportedPodcast) {
|
||||
return $this
|
||||
->addUsingAlias(PodcastPeer::ID, $importedPodcast->getDbId(), $comparison);
|
||||
} elseif ($importedPodcast instanceof PropelObjectCollection) {
|
||||
return $this
|
||||
->useImportedPodcastQuery()
|
||||
->filterByPrimaryKeys($importedPodcast->getPrimaryKeys())
|
||||
->endUse();
|
||||
} else {
|
||||
throw new PropelException('filterByImportedPodcast() only accepts arguments of type ImportedPodcast or PropelCollection');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a JOIN clause to the query using the ImportedPodcast relation
|
||||
*
|
||||
* @param string $relationAlias optional alias for the relation
|
||||
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
|
||||
*
|
||||
* @return PodcastQuery The current query, for fluid interface
|
||||
*/
|
||||
public function joinImportedPodcast($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
$tableMap = $this->getTableMap();
|
||||
$relationMap = $tableMap->getRelation('ImportedPodcast');
|
||||
|
||||
// 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, 'ImportedPodcast');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the ImportedPodcast relation ImportedPodcast 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 ImportedPodcastQuery A secondary query class using the current class as primary query
|
||||
*/
|
||||
public function useImportedPodcastQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)
|
||||
{
|
||||
return $this
|
||||
->joinImportedPodcast($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'ImportedPodcast', 'ImportedPodcastQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
* Exclude object from result
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue