Testing
This commit is contained in:
parent
43e9fb59ce
commit
b00ac6750c
32 changed files with 10218 additions and 358 deletions
|
@ -35,12 +35,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* The value for the url field.
|
||||
* @var string
|
||||
*/
|
||||
protected $url;
|
||||
|
||||
/**
|
||||
* The value for the title field.
|
||||
* @var string
|
||||
|
@ -71,6 +65,12 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
*/
|
||||
protected $copyright;
|
||||
|
||||
/**
|
||||
* The value for the link field.
|
||||
* @var string
|
||||
*/
|
||||
protected $link;
|
||||
|
||||
/**
|
||||
* The value for the itunes_author field.
|
||||
* @var string
|
||||
|
@ -107,13 +107,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
*/
|
||||
protected $itunes_explicit;
|
||||
|
||||
/**
|
||||
* The value for the auto_ingest field.
|
||||
* Note: this column has a database default value of: false
|
||||
* @var boolean
|
||||
*/
|
||||
protected $auto_ingest;
|
||||
|
||||
/**
|
||||
* The value for the owner field.
|
||||
* @var int
|
||||
|
@ -121,11 +114,10 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
protected $owner;
|
||||
|
||||
/**
|
||||
* The value for the type field.
|
||||
* Note: this column has a database default value of: 1
|
||||
* @var int
|
||||
* The value for the descendant_class field.
|
||||
* @var string
|
||||
*/
|
||||
protected $type;
|
||||
protected $descendant_class;
|
||||
|
||||
/**
|
||||
* @var CcSubjs
|
||||
|
@ -138,6 +130,16 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
protected $collPodcastEpisodess;
|
||||
protected $collPodcastEpisodessPartial;
|
||||
|
||||
/**
|
||||
* @var StationPodcast one-to-one related StationPodcast object
|
||||
*/
|
||||
protected $singleStationPodcast;
|
||||
|
||||
/**
|
||||
* @var ImportedPodcast one-to-one related ImportedPodcast object
|
||||
*/
|
||||
protected $singleImportedPodcast;
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
|
@ -164,28 +166,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
*/
|
||||
protected $podcastEpisodessScheduledForDeletion = null;
|
||||
|
||||
/**
|
||||
* Applies default values to this object.
|
||||
* This method should be called from the object's constructor (or
|
||||
* equivalent initialization method).
|
||||
* @see __construct()
|
||||
*/
|
||||
public function applyDefaultValues()
|
||||
{
|
||||
$this->auto_ingest = false;
|
||||
$this->type = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes internal state of BasePodcast object.
|
||||
* @see applyDefaults()
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->applyDefaultValues();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [id] column value.
|
||||
*
|
||||
|
@ -197,17 +177,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [url] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDbUrl()
|
||||
{
|
||||
|
||||
return $this->url;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [title] column value.
|
||||
*
|
||||
|
@ -263,6 +232,17 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->copyright;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [link] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getDbLink()
|
||||
{
|
||||
|
||||
return $this->link;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [itunes_author] column value.
|
||||
*
|
||||
|
@ -329,17 +309,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->itunes_explicit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [auto_ingest] column value.
|
||||
*
|
||||
* @return boolean
|
||||
*/
|
||||
public function getDbAutoIngest()
|
||||
{
|
||||
|
||||
return $this->auto_ingest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [owner] column value.
|
||||
*
|
||||
|
@ -352,14 +321,14 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
}
|
||||
|
||||
/**
|
||||
* Get the [type] column value.
|
||||
* Get the [descendant_class] column value.
|
||||
*
|
||||
* @return int
|
||||
* @return string
|
||||
*/
|
||||
public function getDbType()
|
||||
public function getDescendantClass()
|
||||
{
|
||||
|
||||
return $this->type;
|
||||
return $this->descendant_class;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -383,27 +352,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this;
|
||||
} // setDbId()
|
||||
|
||||
/**
|
||||
* Set the value of [url] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return Podcast The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbUrl($v)
|
||||
{
|
||||
if ($v !== null && is_numeric($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->url !== $v) {
|
||||
$this->url = $v;
|
||||
$this->modifiedColumns[] = PodcastPeer::URL;
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
} // setDbUrl()
|
||||
|
||||
/**
|
||||
* Set the value of [title] column.
|
||||
*
|
||||
|
@ -509,6 +457,27 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this;
|
||||
} // setDbCopyright()
|
||||
|
||||
/**
|
||||
* Set the value of [link] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return Podcast The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbLink($v)
|
||||
{
|
||||
if ($v !== null && is_numeric($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->link !== $v) {
|
||||
$this->link = $v;
|
||||
$this->modifiedColumns[] = PodcastPeer::LINK;
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
} // setDbLink()
|
||||
|
||||
/**
|
||||
* Set the value of [itunes_author] column.
|
||||
*
|
||||
|
@ -635,35 +604,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this;
|
||||
} // setDbItunesExplicit()
|
||||
|
||||
/**
|
||||
* Sets the value of the [auto_ingest] column.
|
||||
* Non-boolean arguments are converted using the following rules:
|
||||
* * 1, '1', 'true', 'on', and 'yes' are converted to boolean true
|
||||
* * 0, '0', 'false', 'off', and 'no' are converted to boolean false
|
||||
* Check on string values is case insensitive (so 'FaLsE' is seen as 'false').
|
||||
*
|
||||
* @param boolean|integer|string $v The new value
|
||||
* @return Podcast The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbAutoIngest($v)
|
||||
{
|
||||
if ($v !== null) {
|
||||
if (is_string($v)) {
|
||||
$v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;
|
||||
} else {
|
||||
$v = (boolean) $v;
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->auto_ingest !== $v) {
|
||||
$this->auto_ingest = $v;
|
||||
$this->modifiedColumns[] = PodcastPeer::AUTO_INGEST;
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
} // setDbAutoIngest()
|
||||
|
||||
/**
|
||||
* Set the value of [owner] column.
|
||||
*
|
||||
|
@ -690,25 +630,25 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
} // setDbOwner()
|
||||
|
||||
/**
|
||||
* Set the value of [type] column.
|
||||
* Set the value of [descendant_class] column.
|
||||
*
|
||||
* @param int $v new value
|
||||
* @param string $v new value
|
||||
* @return Podcast The current object (for fluent API support)
|
||||
*/
|
||||
public function setDbType($v)
|
||||
public function setDescendantClass($v)
|
||||
{
|
||||
if ($v !== null && is_numeric($v)) {
|
||||
$v = (int) $v;
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->type !== $v) {
|
||||
$this->type = $v;
|
||||
$this->modifiedColumns[] = PodcastPeer::TYPE;
|
||||
if ($this->descendant_class !== $v) {
|
||||
$this->descendant_class = $v;
|
||||
$this->modifiedColumns[] = PodcastPeer::DESCENDANT_CLASS;
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
} // setDbType()
|
||||
} // setDescendantClass()
|
||||
|
||||
/**
|
||||
* Indicates whether the columns in this object are only set to default values.
|
||||
|
@ -720,14 +660,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
*/
|
||||
public function hasOnlyDefaultValues()
|
||||
{
|
||||
if ($this->auto_ingest !== false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->type !== 1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// otherwise, everything was equal, so return true
|
||||
return true;
|
||||
} // hasOnlyDefaultValues()
|
||||
|
@ -751,21 +683,20 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
try {
|
||||
|
||||
$this->id = ($row[$startcol + 0] !== null) ? (int) $row[$startcol + 0] : null;
|
||||
$this->url = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
||||
$this->title = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||
$this->creator = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->description = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||
$this->language = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
|
||||
$this->copyright = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
|
||||
$this->title = ($row[$startcol + 1] !== null) ? (string) $row[$startcol + 1] : null;
|
||||
$this->creator = ($row[$startcol + 2] !== null) ? (string) $row[$startcol + 2] : null;
|
||||
$this->description = ($row[$startcol + 3] !== null) ? (string) $row[$startcol + 3] : null;
|
||||
$this->language = ($row[$startcol + 4] !== null) ? (string) $row[$startcol + 4] : null;
|
||||
$this->copyright = ($row[$startcol + 5] !== null) ? (string) $row[$startcol + 5] : null;
|
||||
$this->link = ($row[$startcol + 6] !== null) ? (string) $row[$startcol + 6] : null;
|
||||
$this->itunes_author = ($row[$startcol + 7] !== null) ? (string) $row[$startcol + 7] : null;
|
||||
$this->itunes_keywords = ($row[$startcol + 8] !== null) ? (string) $row[$startcol + 8] : null;
|
||||
$this->itunes_summary = ($row[$startcol + 9] !== null) ? (string) $row[$startcol + 9] : null;
|
||||
$this->itunes_subtitle = ($row[$startcol + 10] !== null) ? (string) $row[$startcol + 10] : null;
|
||||
$this->itunes_category = ($row[$startcol + 11] !== null) ? (string) $row[$startcol + 11] : null;
|
||||
$this->itunes_explicit = ($row[$startcol + 12] !== null) ? (string) $row[$startcol + 12] : null;
|
||||
$this->auto_ingest = ($row[$startcol + 13] !== null) ? (boolean) $row[$startcol + 13] : null;
|
||||
$this->owner = ($row[$startcol + 14] !== null) ? (int) $row[$startcol + 14] : null;
|
||||
$this->type = ($row[$startcol + 15] !== null) ? (int) $row[$startcol + 15] : null;
|
||||
$this->owner = ($row[$startcol + 13] !== null) ? (int) $row[$startcol + 13] : null;
|
||||
$this->descendant_class = ($row[$startcol + 14] !== null) ? (string) $row[$startcol + 14] : null;
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
@ -775,7 +706,7 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
}
|
||||
$this->postHydrate($row, $startcol, $rehydrate);
|
||||
|
||||
return $startcol + 16; // 16 = PodcastPeer::NUM_HYDRATE_COLUMNS.
|
||||
return $startcol + 15; // 15 = PodcastPeer::NUM_HYDRATE_COLUMNS.
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating Podcast object", $e);
|
||||
|
@ -843,6 +774,10 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$this->aCcSubjs = null;
|
||||
$this->collPodcastEpisodess = null;
|
||||
|
||||
$this->singleStationPodcast = null;
|
||||
|
||||
$this->singleImportedPodcast = null;
|
||||
|
||||
} // if (deep)
|
||||
}
|
||||
|
||||
|
@ -996,6 +931,18 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
}
|
||||
}
|
||||
|
||||
if ($this->singleStationPodcast !== null) {
|
||||
if (!$this->singleStationPodcast->isDeleted() && ($this->singleStationPodcast->isNew() || $this->singleStationPodcast->isModified())) {
|
||||
$affectedRows += $this->singleStationPodcast->save($con);
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->singleImportedPodcast !== null) {
|
||||
if (!$this->singleImportedPodcast->isDeleted() && ($this->singleImportedPodcast->isNew() || $this->singleImportedPodcast->isModified())) {
|
||||
$affectedRows += $this->singleImportedPodcast->save($con);
|
||||
}
|
||||
}
|
||||
|
||||
$this->alreadyInSave = false;
|
||||
|
||||
}
|
||||
|
@ -1035,9 +982,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
if ($this->isColumnModified(PodcastPeer::ID)) {
|
||||
$modifiedColumns[':p' . $index++] = '"id"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::URL)) {
|
||||
$modifiedColumns[':p' . $index++] = '"url"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::TITLE)) {
|
||||
$modifiedColumns[':p' . $index++] = '"title"';
|
||||
}
|
||||
|
@ -1053,6 +997,9 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
if ($this->isColumnModified(PodcastPeer::COPYRIGHT)) {
|
||||
$modifiedColumns[':p' . $index++] = '"copyright"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::LINK)) {
|
||||
$modifiedColumns[':p' . $index++] = '"link"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_AUTHOR)) {
|
||||
$modifiedColumns[':p' . $index++] = '"itunes_author"';
|
||||
}
|
||||
|
@ -1071,14 +1018,11 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
if ($this->isColumnModified(PodcastPeer::ITUNES_EXPLICIT)) {
|
||||
$modifiedColumns[':p' . $index++] = '"itunes_explicit"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::AUTO_INGEST)) {
|
||||
$modifiedColumns[':p' . $index++] = '"auto_ingest"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::OWNER)) {
|
||||
$modifiedColumns[':p' . $index++] = '"owner"';
|
||||
}
|
||||
if ($this->isColumnModified(PodcastPeer::TYPE)) {
|
||||
$modifiedColumns[':p' . $index++] = '"type"';
|
||||
if ($this->isColumnModified(PodcastPeer::DESCENDANT_CLASS)) {
|
||||
$modifiedColumns[':p' . $index++] = '"descendant_class"';
|
||||
}
|
||||
|
||||
$sql = sprintf(
|
||||
|
@ -1094,9 +1038,6 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
case '"id"':
|
||||
$stmt->bindValue($identifier, $this->id, PDO::PARAM_INT);
|
||||
break;
|
||||
case '"url"':
|
||||
$stmt->bindValue($identifier, $this->url, PDO::PARAM_STR);
|
||||
break;
|
||||
case '"title"':
|
||||
$stmt->bindValue($identifier, $this->title, PDO::PARAM_STR);
|
||||
break;
|
||||
|
@ -1112,6 +1053,9 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
case '"copyright"':
|
||||
$stmt->bindValue($identifier, $this->copyright, PDO::PARAM_STR);
|
||||
break;
|
||||
case '"link"':
|
||||
$stmt->bindValue($identifier, $this->link, PDO::PARAM_STR);
|
||||
break;
|
||||
case '"itunes_author"':
|
||||
$stmt->bindValue($identifier, $this->itunes_author, PDO::PARAM_STR);
|
||||
break;
|
||||
|
@ -1130,14 +1074,11 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
case '"itunes_explicit"':
|
||||
$stmt->bindValue($identifier, $this->itunes_explicit, PDO::PARAM_STR);
|
||||
break;
|
||||
case '"auto_ingest"':
|
||||
$stmt->bindValue($identifier, $this->auto_ingest, PDO::PARAM_BOOL);
|
||||
break;
|
||||
case '"owner"':
|
||||
$stmt->bindValue($identifier, $this->owner, PDO::PARAM_INT);
|
||||
break;
|
||||
case '"type"':
|
||||
$stmt->bindValue($identifier, $this->type, PDO::PARAM_INT);
|
||||
case '"descendant_class"':
|
||||
$stmt->bindValue($identifier, $this->descendant_class, PDO::PARAM_STR);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1251,6 +1192,18 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
}
|
||||
}
|
||||
|
||||
if ($this->singleStationPodcast !== null) {
|
||||
if (!$this->singleStationPodcast->validate($columns)) {
|
||||
$failureMap = array_merge($failureMap, $this->singleStationPodcast->getValidationFailures());
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->singleImportedPodcast !== null) {
|
||||
if (!$this->singleImportedPodcast->validate($columns)) {
|
||||
$failureMap = array_merge($failureMap, $this->singleImportedPodcast->getValidationFailures());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$this->alreadyInValidation = false;
|
||||
}
|
||||
|
@ -1290,23 +1243,23 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->getDbId();
|
||||
break;
|
||||
case 1:
|
||||
return $this->getDbUrl();
|
||||
break;
|
||||
case 2:
|
||||
return $this->getDbTitle();
|
||||
break;
|
||||
case 3:
|
||||
case 2:
|
||||
return $this->getDbCreator();
|
||||
break;
|
||||
case 4:
|
||||
case 3:
|
||||
return $this->getDbDescription();
|
||||
break;
|
||||
case 5:
|
||||
case 4:
|
||||
return $this->getDbLanguage();
|
||||
break;
|
||||
case 6:
|
||||
case 5:
|
||||
return $this->getDbCopyright();
|
||||
break;
|
||||
case 6:
|
||||
return $this->getDbLink();
|
||||
break;
|
||||
case 7:
|
||||
return $this->getDbItunesAuthor();
|
||||
break;
|
||||
|
@ -1326,13 +1279,10 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->getDbItunesExplicit();
|
||||
break;
|
||||
case 13:
|
||||
return $this->getDbAutoIngest();
|
||||
break;
|
||||
case 14:
|
||||
return $this->getDbOwner();
|
||||
break;
|
||||
case 15:
|
||||
return $this->getDbType();
|
||||
case 14:
|
||||
return $this->getDescendantClass();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
|
@ -1364,21 +1314,20 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$keys = PodcastPeer::getFieldNames($keyType);
|
||||
$result = array(
|
||||
$keys[0] => $this->getDbId(),
|
||||
$keys[1] => $this->getDbUrl(),
|
||||
$keys[2] => $this->getDbTitle(),
|
||||
$keys[3] => $this->getDbCreator(),
|
||||
$keys[4] => $this->getDbDescription(),
|
||||
$keys[5] => $this->getDbLanguage(),
|
||||
$keys[6] => $this->getDbCopyright(),
|
||||
$keys[1] => $this->getDbTitle(),
|
||||
$keys[2] => $this->getDbCreator(),
|
||||
$keys[3] => $this->getDbDescription(),
|
||||
$keys[4] => $this->getDbLanguage(),
|
||||
$keys[5] => $this->getDbCopyright(),
|
||||
$keys[6] => $this->getDbLink(),
|
||||
$keys[7] => $this->getDbItunesAuthor(),
|
||||
$keys[8] => $this->getDbItunesKeywords(),
|
||||
$keys[9] => $this->getDbItunesSummary(),
|
||||
$keys[10] => $this->getDbItunesSubtitle(),
|
||||
$keys[11] => $this->getDbItunesCategory(),
|
||||
$keys[12] => $this->getDbItunesExplicit(),
|
||||
$keys[13] => $this->getDbAutoIngest(),
|
||||
$keys[14] => $this->getDbOwner(),
|
||||
$keys[15] => $this->getDbType(),
|
||||
$keys[13] => $this->getDbOwner(),
|
||||
$keys[14] => $this->getDescendantClass(),
|
||||
);
|
||||
$virtualColumns = $this->virtualColumns;
|
||||
foreach ($virtualColumns as $key => $virtualColumn) {
|
||||
|
@ -1392,6 +1341,12 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
if (null !== $this->collPodcastEpisodess) {
|
||||
$result['PodcastEpisodess'] = $this->collPodcastEpisodess->toArray(null, true, $keyType, $includeLazyLoadColumns, $alreadyDumpedObjects);
|
||||
}
|
||||
if (null !== $this->singleStationPodcast) {
|
||||
$result['StationPodcast'] = $this->singleStationPodcast->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
|
||||
}
|
||||
if (null !== $this->singleImportedPodcast) {
|
||||
$result['ImportedPodcast'] = $this->singleImportedPodcast->toArray($keyType, $includeLazyLoadColumns, $alreadyDumpedObjects, true);
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
@ -1430,23 +1385,23 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$this->setDbId($value);
|
||||
break;
|
||||
case 1:
|
||||
$this->setDbUrl($value);
|
||||
break;
|
||||
case 2:
|
||||
$this->setDbTitle($value);
|
||||
break;
|
||||
case 3:
|
||||
case 2:
|
||||
$this->setDbCreator($value);
|
||||
break;
|
||||
case 4:
|
||||
case 3:
|
||||
$this->setDbDescription($value);
|
||||
break;
|
||||
case 5:
|
||||
case 4:
|
||||
$this->setDbLanguage($value);
|
||||
break;
|
||||
case 6:
|
||||
case 5:
|
||||
$this->setDbCopyright($value);
|
||||
break;
|
||||
case 6:
|
||||
$this->setDbLink($value);
|
||||
break;
|
||||
case 7:
|
||||
$this->setDbItunesAuthor($value);
|
||||
break;
|
||||
|
@ -1466,13 +1421,10 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$this->setDbItunesExplicit($value);
|
||||
break;
|
||||
case 13:
|
||||
$this->setDbAutoIngest($value);
|
||||
break;
|
||||
case 14:
|
||||
$this->setDbOwner($value);
|
||||
break;
|
||||
case 15:
|
||||
$this->setDbType($value);
|
||||
case 14:
|
||||
$this->setDescendantClass($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
@ -1499,21 +1451,20 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$keys = PodcastPeer::getFieldNames($keyType);
|
||||
|
||||
if (array_key_exists($keys[0], $arr)) $this->setDbId($arr[$keys[0]]);
|
||||
if (array_key_exists($keys[1], $arr)) $this->setDbUrl($arr[$keys[1]]);
|
||||
if (array_key_exists($keys[2], $arr)) $this->setDbTitle($arr[$keys[2]]);
|
||||
if (array_key_exists($keys[3], $arr)) $this->setDbCreator($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setDbDescription($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[5], $arr)) $this->setDbLanguage($arr[$keys[5]]);
|
||||
if (array_key_exists($keys[6], $arr)) $this->setDbCopyright($arr[$keys[6]]);
|
||||
if (array_key_exists($keys[1], $arr)) $this->setDbTitle($arr[$keys[1]]);
|
||||
if (array_key_exists($keys[2], $arr)) $this->setDbCreator($arr[$keys[2]]);
|
||||
if (array_key_exists($keys[3], $arr)) $this->setDbDescription($arr[$keys[3]]);
|
||||
if (array_key_exists($keys[4], $arr)) $this->setDbLanguage($arr[$keys[4]]);
|
||||
if (array_key_exists($keys[5], $arr)) $this->setDbCopyright($arr[$keys[5]]);
|
||||
if (array_key_exists($keys[6], $arr)) $this->setDbLink($arr[$keys[6]]);
|
||||
if (array_key_exists($keys[7], $arr)) $this->setDbItunesAuthor($arr[$keys[7]]);
|
||||
if (array_key_exists($keys[8], $arr)) $this->setDbItunesKeywords($arr[$keys[8]]);
|
||||
if (array_key_exists($keys[9], $arr)) $this->setDbItunesSummary($arr[$keys[9]]);
|
||||
if (array_key_exists($keys[10], $arr)) $this->setDbItunesSubtitle($arr[$keys[10]]);
|
||||
if (array_key_exists($keys[11], $arr)) $this->setDbItunesCategory($arr[$keys[11]]);
|
||||
if (array_key_exists($keys[12], $arr)) $this->setDbItunesExplicit($arr[$keys[12]]);
|
||||
if (array_key_exists($keys[13], $arr)) $this->setDbAutoIngest($arr[$keys[13]]);
|
||||
if (array_key_exists($keys[14], $arr)) $this->setDbOwner($arr[$keys[14]]);
|
||||
if (array_key_exists($keys[15], $arr)) $this->setDbType($arr[$keys[15]]);
|
||||
if (array_key_exists($keys[13], $arr)) $this->setDbOwner($arr[$keys[13]]);
|
||||
if (array_key_exists($keys[14], $arr)) $this->setDescendantClass($arr[$keys[14]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1526,21 +1477,20 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$criteria = new Criteria(PodcastPeer::DATABASE_NAME);
|
||||
|
||||
if ($this->isColumnModified(PodcastPeer::ID)) $criteria->add(PodcastPeer::ID, $this->id);
|
||||
if ($this->isColumnModified(PodcastPeer::URL)) $criteria->add(PodcastPeer::URL, $this->url);
|
||||
if ($this->isColumnModified(PodcastPeer::TITLE)) $criteria->add(PodcastPeer::TITLE, $this->title);
|
||||
if ($this->isColumnModified(PodcastPeer::CREATOR)) $criteria->add(PodcastPeer::CREATOR, $this->creator);
|
||||
if ($this->isColumnModified(PodcastPeer::DESCRIPTION)) $criteria->add(PodcastPeer::DESCRIPTION, $this->description);
|
||||
if ($this->isColumnModified(PodcastPeer::LANGUAGE)) $criteria->add(PodcastPeer::LANGUAGE, $this->language);
|
||||
if ($this->isColumnModified(PodcastPeer::COPYRIGHT)) $criteria->add(PodcastPeer::COPYRIGHT, $this->copyright);
|
||||
if ($this->isColumnModified(PodcastPeer::LINK)) $criteria->add(PodcastPeer::LINK, $this->link);
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_AUTHOR)) $criteria->add(PodcastPeer::ITUNES_AUTHOR, $this->itunes_author);
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_KEYWORDS)) $criteria->add(PodcastPeer::ITUNES_KEYWORDS, $this->itunes_keywords);
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_SUMMARY)) $criteria->add(PodcastPeer::ITUNES_SUMMARY, $this->itunes_summary);
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_SUBTITLE)) $criteria->add(PodcastPeer::ITUNES_SUBTITLE, $this->itunes_subtitle);
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_CATEGORY)) $criteria->add(PodcastPeer::ITUNES_CATEGORY, $this->itunes_category);
|
||||
if ($this->isColumnModified(PodcastPeer::ITUNES_EXPLICIT)) $criteria->add(PodcastPeer::ITUNES_EXPLICIT, $this->itunes_explicit);
|
||||
if ($this->isColumnModified(PodcastPeer::AUTO_INGEST)) $criteria->add(PodcastPeer::AUTO_INGEST, $this->auto_ingest);
|
||||
if ($this->isColumnModified(PodcastPeer::OWNER)) $criteria->add(PodcastPeer::OWNER, $this->owner);
|
||||
if ($this->isColumnModified(PodcastPeer::TYPE)) $criteria->add(PodcastPeer::TYPE, $this->type);
|
||||
if ($this->isColumnModified(PodcastPeer::DESCENDANT_CLASS)) $criteria->add(PodcastPeer::DESCENDANT_CLASS, $this->descendant_class);
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
|
@ -1604,21 +1554,20 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
*/
|
||||
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
|
||||
{
|
||||
$copyObj->setDbUrl($this->getDbUrl());
|
||||
$copyObj->setDbTitle($this->getDbTitle());
|
||||
$copyObj->setDbCreator($this->getDbCreator());
|
||||
$copyObj->setDbDescription($this->getDbDescription());
|
||||
$copyObj->setDbLanguage($this->getDbLanguage());
|
||||
$copyObj->setDbCopyright($this->getDbCopyright());
|
||||
$copyObj->setDbLink($this->getDbLink());
|
||||
$copyObj->setDbItunesAuthor($this->getDbItunesAuthor());
|
||||
$copyObj->setDbItunesKeywords($this->getDbItunesKeywords());
|
||||
$copyObj->setDbItunesSummary($this->getDbItunesSummary());
|
||||
$copyObj->setDbItunesSubtitle($this->getDbItunesSubtitle());
|
||||
$copyObj->setDbItunesCategory($this->getDbItunesCategory());
|
||||
$copyObj->setDbItunesExplicit($this->getDbItunesExplicit());
|
||||
$copyObj->setDbAutoIngest($this->getDbAutoIngest());
|
||||
$copyObj->setDbOwner($this->getDbOwner());
|
||||
$copyObj->setDbType($this->getDbType());
|
||||
$copyObj->setDescendantClass($this->getDescendantClass());
|
||||
|
||||
if ($deepCopy && !$this->startCopy) {
|
||||
// important: temporarily setNew(false) because this affects the behavior of
|
||||
|
@ -1633,6 +1582,16 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
}
|
||||
}
|
||||
|
||||
$relObj = $this->getStationPodcast();
|
||||
if ($relObj) {
|
||||
$copyObj->setStationPodcast($relObj->copy($deepCopy));
|
||||
}
|
||||
|
||||
$relObj = $this->getImportedPodcast();
|
||||
if ($relObj) {
|
||||
$copyObj->setImportedPodcast($relObj->copy($deepCopy));
|
||||
}
|
||||
|
||||
//unflag object copy
|
||||
$this->startCopy = false;
|
||||
} // if ($deepCopy)
|
||||
|
@ -2001,32 +1960,102 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->getPodcastEpisodess($query, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a single StationPodcast object, which is related to this object by a one-to-one relationship.
|
||||
*
|
||||
* @param PropelPDO $con optional connection object
|
||||
* @return StationPodcast
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getStationPodcast(PropelPDO $con = null)
|
||||
{
|
||||
|
||||
if ($this->singleStationPodcast === null && !$this->isNew()) {
|
||||
$this->singleStationPodcast = StationPodcastQuery::create()->findPk($this->getPrimaryKey(), $con);
|
||||
}
|
||||
|
||||
return $this->singleStationPodcast;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a single StationPodcast object as related to this object by a one-to-one relationship.
|
||||
*
|
||||
* @param StationPodcast $v StationPodcast
|
||||
* @return Podcast The current object (for fluent API support)
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function setStationPodcast(StationPodcast $v = null)
|
||||
{
|
||||
$this->singleStationPodcast = $v;
|
||||
|
||||
// Make sure that that the passed-in StationPodcast isn't already associated with this object
|
||||
if ($v !== null && $v->getPodcast(null, false) === null) {
|
||||
$v->setPodcast($this);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a single ImportedPodcast object, which is related to this object by a one-to-one relationship.
|
||||
*
|
||||
* @param PropelPDO $con optional connection object
|
||||
* @return ImportedPodcast
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getImportedPodcast(PropelPDO $con = null)
|
||||
{
|
||||
|
||||
if ($this->singleImportedPodcast === null && !$this->isNew()) {
|
||||
$this->singleImportedPodcast = ImportedPodcastQuery::create()->findPk($this->getPrimaryKey(), $con);
|
||||
}
|
||||
|
||||
return $this->singleImportedPodcast;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets a single ImportedPodcast object as related to this object by a one-to-one relationship.
|
||||
*
|
||||
* @param ImportedPodcast $v ImportedPodcast
|
||||
* @return Podcast The current object (for fluent API support)
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function setImportedPodcast(ImportedPodcast $v = null)
|
||||
{
|
||||
$this->singleImportedPodcast = $v;
|
||||
|
||||
// Make sure that that the passed-in ImportedPodcast isn't already associated with this object
|
||||
if ($v !== null && $v->getPodcast(null, false) === null) {
|
||||
$v->setPodcast($this);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the current object and sets all attributes to their default values
|
||||
*/
|
||||
public function clear()
|
||||
{
|
||||
$this->id = null;
|
||||
$this->url = null;
|
||||
$this->title = null;
|
||||
$this->creator = null;
|
||||
$this->description = null;
|
||||
$this->language = null;
|
||||
$this->copyright = null;
|
||||
$this->link = null;
|
||||
$this->itunes_author = null;
|
||||
$this->itunes_keywords = null;
|
||||
$this->itunes_summary = null;
|
||||
$this->itunes_subtitle = null;
|
||||
$this->itunes_category = null;
|
||||
$this->itunes_explicit = null;
|
||||
$this->auto_ingest = null;
|
||||
$this->owner = null;
|
||||
$this->type = null;
|
||||
$this->descendant_class = null;
|
||||
$this->alreadyInSave = false;
|
||||
$this->alreadyInValidation = false;
|
||||
$this->alreadyInClearAllReferencesDeep = false;
|
||||
$this->clearAllReferences();
|
||||
$this->applyDefaultValues();
|
||||
$this->resetModified();
|
||||
$this->setNew(true);
|
||||
$this->setDeleted(false);
|
||||
|
@ -2050,6 +2079,12 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$o->clearAllReferences($deep);
|
||||
}
|
||||
}
|
||||
if ($this->singleStationPodcast) {
|
||||
$this->singleStationPodcast->clearAllReferences($deep);
|
||||
}
|
||||
if ($this->singleImportedPodcast) {
|
||||
$this->singleImportedPodcast->clearAllReferences($deep);
|
||||
}
|
||||
if ($this->aCcSubjs instanceof Persistent) {
|
||||
$this->aCcSubjs->clearAllReferences($deep);
|
||||
}
|
||||
|
@ -2061,6 +2096,14 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
$this->collPodcastEpisodess->clearIterator();
|
||||
}
|
||||
$this->collPodcastEpisodess = null;
|
||||
if ($this->singleStationPodcast instanceof PropelCollection) {
|
||||
$this->singleStationPodcast->clearIterator();
|
||||
}
|
||||
$this->singleStationPodcast = null;
|
||||
if ($this->singleImportedPodcast instanceof PropelCollection) {
|
||||
$this->singleImportedPodcast->clearIterator();
|
||||
}
|
||||
$this->singleImportedPodcast = null;
|
||||
$this->aCcSubjs = null;
|
||||
}
|
||||
|
||||
|
@ -2084,4 +2127,32 @@ abstract class BasePodcast extends BaseObject implements Persistent
|
|||
return $this->alreadyInSave;
|
||||
}
|
||||
|
||||
// concrete_inheritance_parent behavior
|
||||
|
||||
/**
|
||||
* Whether or not this object is the parent of a child object
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasChildObject()
|
||||
{
|
||||
return $this->getDescendantClass() !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the child object of this object
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getChildObject()
|
||||
{
|
||||
if (!$this->hasChildObject()) {
|
||||
return null;
|
||||
}
|
||||
$childObjectClass = $this->getDescendantClass();
|
||||
$childObject = PropelQuery::from($childObjectClass)->findPk($this->getPrimaryKey());
|
||||
|
||||
return $childObject->hasChildObject() ? $childObject->getChildObject() : $childObject;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue