cc-3936: applied schema changes
This commit is contained in:
parent
c83fad2546
commit
4ad983f63c
|
@ -484,9 +484,11 @@ class Application_Model_StoredFile
|
|||
}
|
||||
|
||||
$file = new CcFiles();
|
||||
$now = new DateTime("now", new DateTimeZone("UTC"));
|
||||
$file->setDbUtime($now);
|
||||
$file->setDbMtime($now);
|
||||
//$now = new DateTime("now", new DateTimeZone("UTC"));
|
||||
$file->setDbUtime(new DateTime("now", new DateTimeZone("UTC")));
|
||||
$file->setDbMtime(new DateTime("now", new DateTimeZone("UTC")));
|
||||
//$file->setDbUtime($now);
|
||||
//$file->setDbMtime($now);
|
||||
|
||||
$storedFile = new Application_Model_StoredFile();
|
||||
$storedFile->_file = $file;
|
||||
|
@ -605,9 +607,9 @@ class Application_Model_StoredFile
|
|||
->find();
|
||||
$res = array();
|
||||
foreach ($files as $file) {
|
||||
$storedFile = new Application_Model_StoredFile();
|
||||
$storedFile = new Application_Model_StoredFile();
|
||||
$storedFile->_file = $file;
|
||||
$res[] = $storedFile;
|
||||
$res[] = $storedFile;
|
||||
}
|
||||
|
||||
return $res;
|
||||
|
|
|
@ -246,7 +246,7 @@ class Application_Model_User
|
|||
$sql = $sql_gen;
|
||||
|
||||
$type = array_map( function($t) {
|
||||
return "type = '{$type[$i]}'";
|
||||
return "type = '{$t}'";
|
||||
}, $type);
|
||||
|
||||
$sql_type = join(" OR ", $type);
|
||||
|
|
|
@ -101,7 +101,7 @@ class CcFilesTableMap extends TableMap {
|
|||
$this->addColumn('SOUNDCLOUD_LINK_TO_FILE', 'DbSoundcloudLinkToFile', 'VARCHAR', false, 4096, null);
|
||||
$this->addColumn('SOUNDCLOUD_UPLOAD_TIME', 'DbSoundCloundUploadTime', 'TIMESTAMP', false, 6, null);
|
||||
$this->addColumn('REPLAY_GAIN', 'DbReplayGain', 'VARCHAR', false, 16, null);
|
||||
$this->addForeignKey('OWNER_ID', 'ownerId', 'INTEGER', 'cc_subjs', 'ID', false, null, null);
|
||||
$this->addForeignKey('OWNER_ID', 'DbOwnerId', 'INTEGER', 'cc_subjs', 'ID', false, null, null);
|
||||
// validators
|
||||
} // initialize()
|
||||
|
||||
|
@ -110,7 +110,7 @@ class CcFilesTableMap extends TableMap {
|
|||
*/
|
||||
public function buildRelations()
|
||||
{
|
||||
$this->addRelation('CcSubjsRelatedByownerId', 'CcSubjs', RelationMap::MANY_TO_ONE, array('owner_id' => 'id', ), null, null);
|
||||
$this->addRelation('Owner', 'CcSubjs', RelationMap::MANY_TO_ONE, array('owner_id' => 'id', ), null, null);
|
||||
$this->addRelation('CcSubjsRelatedByDbEditedby', 'CcSubjs', RelationMap::MANY_TO_ONE, array('editedby' => 'id', ), null, null);
|
||||
$this->addRelation('CcMusicDirs', 'CcMusicDirs', RelationMap::MANY_TO_ONE, array('directory' => 'id', ), null, null);
|
||||
$this->addRelation('CcShowInstances', 'CcShowInstances', RelationMap::ONE_TO_MANY, array('id' => 'file_id', ), 'CASCADE', null);
|
||||
|
|
|
@ -59,7 +59,7 @@ class CcSubjsTableMap extends TableMap {
|
|||
*/
|
||||
public function buildRelations()
|
||||
{
|
||||
$this->addRelation('CcFilesRelatedByownerId', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'owner_id', ), null, null);
|
||||
$this->addRelation('CcFilesRelatedByDbOwnerId', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'owner_id', ), null, null);
|
||||
$this->addRelation('CcFilesRelatedByDbEditedby', 'CcFiles', RelationMap::ONE_TO_MANY, array('id' => 'editedby', ), null, null);
|
||||
$this->addRelation('CcPerms', 'CcPerms', RelationMap::ONE_TO_MANY, array('id' => 'subj', ), 'CASCADE', null);
|
||||
$this->addRelation('CcShowHosts', 'CcShowHosts', RelationMap::ONE_TO_MANY, array('id' => 'subjs_id', ), 'CASCADE', null);
|
||||
|
|
|
@ -419,7 +419,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
/**
|
||||
* @var CcSubjs
|
||||
*/
|
||||
protected $aCcSubjsRelatedByownerId;
|
||||
protected $aOwner;
|
||||
|
||||
/**
|
||||
* @var CcSubjs
|
||||
|
@ -1220,7 +1220,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getownerId()
|
||||
public function getDbOwnerId()
|
||||
{
|
||||
return $this->owner_id;
|
||||
}
|
||||
|
@ -2615,7 +2615,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
* @param int $v new value
|
||||
* @return CcFiles The current object (for fluent API support)
|
||||
*/
|
||||
public function setownerId($v)
|
||||
public function setDbOwnerId($v)
|
||||
{
|
||||
if ($v !== null) {
|
||||
$v = (int) $v;
|
||||
|
@ -2626,12 +2626,12 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$this->modifiedColumns[] = CcFilesPeer::OWNER_ID;
|
||||
}
|
||||
|
||||
if ($this->aCcSubjsRelatedByownerId !== null && $this->aCcSubjsRelatedByownerId->getDbId() !== $v) {
|
||||
$this->aCcSubjsRelatedByownerId = null;
|
||||
if ($this->aOwner !== null && $this->aOwner->getDbId() !== $v) {
|
||||
$this->aOwner = null;
|
||||
}
|
||||
|
||||
return $this;
|
||||
} // setownerId()
|
||||
} // setDbOwnerId()
|
||||
|
||||
/**
|
||||
* Indicates whether the columns in this object are only set to default values.
|
||||
|
@ -2798,8 +2798,8 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
if ($this->aCcSubjsRelatedByDbEditedby !== null && $this->editedby !== $this->aCcSubjsRelatedByDbEditedby->getDbId()) {
|
||||
$this->aCcSubjsRelatedByDbEditedby = null;
|
||||
}
|
||||
if ($this->aCcSubjsRelatedByownerId !== null && $this->owner_id !== $this->aCcSubjsRelatedByownerId->getDbId()) {
|
||||
$this->aCcSubjsRelatedByownerId = null;
|
||||
if ($this->aOwner !== null && $this->owner_id !== $this->aOwner->getDbId()) {
|
||||
$this->aOwner = null;
|
||||
}
|
||||
} // ensureConsistency
|
||||
|
||||
|
@ -2840,7 +2840,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
|
||||
if ($deep) { // also de-associate any related objects?
|
||||
|
||||
$this->aCcSubjsRelatedByownerId = null;
|
||||
$this->aOwner = null;
|
||||
$this->aCcSubjsRelatedByDbEditedby = null;
|
||||
$this->aCcMusicDirs = null;
|
||||
$this->collCcShowInstancess = null;
|
||||
|
@ -2966,11 +2966,11 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
// method. This object relates to these object(s) by a
|
||||
// foreign key reference.
|
||||
|
||||
if ($this->aCcSubjsRelatedByownerId !== null) {
|
||||
if ($this->aCcSubjsRelatedByownerId->isModified() || $this->aCcSubjsRelatedByownerId->isNew()) {
|
||||
$affectedRows += $this->aCcSubjsRelatedByownerId->save($con);
|
||||
if ($this->aOwner !== null) {
|
||||
if ($this->aOwner->isModified() || $this->aOwner->isNew()) {
|
||||
$affectedRows += $this->aOwner->save($con);
|
||||
}
|
||||
$this->setCcSubjsRelatedByownerId($this->aCcSubjsRelatedByownerId);
|
||||
$this->setOwner($this->aOwner);
|
||||
}
|
||||
|
||||
if ($this->aCcSubjsRelatedByDbEditedby !== null) {
|
||||
|
@ -3113,9 +3113,9 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
// method. This object relates to these object(s) by a
|
||||
// foreign key reference.
|
||||
|
||||
if ($this->aCcSubjsRelatedByownerId !== null) {
|
||||
if (!$this->aCcSubjsRelatedByownerId->validate($columns)) {
|
||||
$failureMap = array_merge($failureMap, $this->aCcSubjsRelatedByownerId->getValidationFailures());
|
||||
if ($this->aOwner !== null) {
|
||||
if (!$this->aOwner->validate($columns)) {
|
||||
$failureMap = array_merge($failureMap, $this->aOwner->getValidationFailures());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3392,7 +3392,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
return $this->getDbReplayGain();
|
||||
break;
|
||||
case 63:
|
||||
return $this->getownerId();
|
||||
return $this->getDbOwnerId();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
|
@ -3481,11 +3481,11 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$keys[60] => $this->getDbSoundcloudLinkToFile(),
|
||||
$keys[61] => $this->getDbSoundCloundUploadTime(),
|
||||
$keys[62] => $this->getDbReplayGain(),
|
||||
$keys[63] => $this->getownerId(),
|
||||
$keys[63] => $this->getDbOwnerId(),
|
||||
);
|
||||
if ($includeForeignObjects) {
|
||||
if (null !== $this->aCcSubjsRelatedByownerId) {
|
||||
$result['CcSubjsRelatedByownerId'] = $this->aCcSubjsRelatedByownerId->toArray($keyType, $includeLazyLoadColumns, true);
|
||||
if (null !== $this->aOwner) {
|
||||
$result['Owner'] = $this->aOwner->toArray($keyType, $includeLazyLoadColumns, true);
|
||||
}
|
||||
if (null !== $this->aCcSubjsRelatedByDbEditedby) {
|
||||
$result['CcSubjsRelatedByDbEditedby'] = $this->aCcSubjsRelatedByDbEditedby->toArray($keyType, $includeLazyLoadColumns, true);
|
||||
|
@ -3714,7 +3714,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$this->setDbReplayGain($value);
|
||||
break;
|
||||
case 63:
|
||||
$this->setownerId($value);
|
||||
$this->setDbOwnerId($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
@ -3803,7 +3803,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
if (array_key_exists($keys[60], $arr)) $this->setDbSoundcloudLinkToFile($arr[$keys[60]]);
|
||||
if (array_key_exists($keys[61], $arr)) $this->setDbSoundCloundUploadTime($arr[$keys[61]]);
|
||||
if (array_key_exists($keys[62], $arr)) $this->setDbReplayGain($arr[$keys[62]]);
|
||||
if (array_key_exists($keys[63], $arr)) $this->setownerId($arr[$keys[63]]);
|
||||
if (array_key_exists($keys[63], $arr)) $this->setDbOwnerId($arr[$keys[63]]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4002,7 +4002,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$copyObj->setDbSoundcloudLinkToFile($this->soundcloud_link_to_file);
|
||||
$copyObj->setDbSoundCloundUploadTime($this->soundcloud_upload_time);
|
||||
$copyObj->setDbReplayGain($this->replay_gain);
|
||||
$copyObj->setownerId($this->owner_id);
|
||||
$copyObj->setDbOwnerId($this->owner_id);
|
||||
|
||||
if ($deepCopy) {
|
||||
// important: temporarily setNew(false) because this affects the behavior of
|
||||
|
@ -4085,20 +4085,20 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
* @return CcFiles The current object (for fluent API support)
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function setCcSubjsRelatedByownerId(CcSubjs $v = null)
|
||||
public function setOwner(CcSubjs $v = null)
|
||||
{
|
||||
if ($v === null) {
|
||||
$this->setownerId(NULL);
|
||||
$this->setDbOwnerId(NULL);
|
||||
} else {
|
||||
$this->setownerId($v->getDbId());
|
||||
$this->setDbOwnerId($v->getDbId());
|
||||
}
|
||||
|
||||
$this->aCcSubjsRelatedByownerId = $v;
|
||||
$this->aOwner = $v;
|
||||
|
||||
// Add binding for other direction of this n:n relationship.
|
||||
// If this object has already been added to the CcSubjs object, it will not be re-added.
|
||||
if ($v !== null) {
|
||||
$v->addCcFilesRelatedByownerId($this);
|
||||
$v->addCcFilesRelatedByDbOwnerId($this);
|
||||
}
|
||||
|
||||
return $this;
|
||||
|
@ -4112,19 +4112,19 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
* @return CcSubjs The associated CcSubjs object.
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getCcSubjsRelatedByownerId(PropelPDO $con = null)
|
||||
public function getOwner(PropelPDO $con = null)
|
||||
{
|
||||
if ($this->aCcSubjsRelatedByownerId === null && ($this->owner_id !== null)) {
|
||||
$this->aCcSubjsRelatedByownerId = CcSubjsQuery::create()->findPk($this->owner_id, $con);
|
||||
if ($this->aOwner === null && ($this->owner_id !== null)) {
|
||||
$this->aOwner = CcSubjsQuery::create()->findPk($this->owner_id, $con);
|
||||
/* The following can be used additionally to
|
||||
guarantee the related object contains a reference
|
||||
to this object. This level of coupling may, however, be
|
||||
undesirable since it could result in an only partially populated collection
|
||||
in the referenced object.
|
||||
$this->aCcSubjsRelatedByownerId->addCcFilessRelatedByownerId($this);
|
||||
$this->aOwner->addCcFilessRelatedByDbOwnerId($this);
|
||||
*/
|
||||
}
|
||||
return $this->aCcSubjsRelatedByownerId;
|
||||
return $this->aOwner;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -4952,7 +4952,7 @@ abstract class BaseCcFiles extends BaseObject implements Persistent
|
|||
$this->collCcPlaylistcontentss = null;
|
||||
$this->collCcBlockcontentss = null;
|
||||
$this->collCcSchedules = null;
|
||||
$this->aCcSubjsRelatedByownerId = null;
|
||||
$this->aOwner = null;
|
||||
$this->aCcSubjsRelatedByDbEditedby = null;
|
||||
$this->aCcMusicDirs = null;
|
||||
}
|
||||
|
|
|
@ -239,8 +239,8 @@ abstract class BaseCcFilesPeer {
|
|||
* e.g. self::$fieldNames[self::TYPE_PHPNAME][0] = 'Id'
|
||||
*/
|
||||
private static $fieldNames = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbState', 'DbCurrentlyaccessing', 'DbEditedby', 'DbMtime', 'DbUtime', 'DbLPtime', 'DbMd5', 'DbTrackTitle', 'DbArtistName', 'DbBitRate', 'DbSampleRate', 'DbFormat', 'DbLength', 'DbAlbumTitle', 'DbGenre', 'DbComments', 'DbYear', 'DbTrackNumber', 'DbChannels', 'DbUrl', 'DbBpm', 'DbRating', 'DbEncodedBy', 'DbDiscNumber', 'DbMood', 'DbLabel', 'DbComposer', 'DbEncoder', 'DbChecksum', 'DbLyrics', 'DbOrchestra', 'DbConductor', 'DbLyricist', 'DbOriginalLyricist', 'DbRadioStationName', 'DbInfoUrl', 'DbArtistUrl', 'DbAudioSourceUrl', 'DbRadioStationUrl', 'DbBuyThisUrl', 'DbIsrcNumber', 'DbCatalogNumber', 'DbOriginalArtist', 'DbCopyright', 'DbReportDatetime', 'DbReportLocation', 'DbReportOrganization', 'DbSubject', 'DbContributor', 'DbLanguage', 'DbFileExists', 'DbSoundcloudId', 'DbSoundcloudErrorCode', 'DbSoundcloudErrorMsg', 'DbSoundcloudLinkToFile', 'DbSoundCloundUploadTime', 'DbReplayGain', 'ownerId', ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbState', 'dbCurrentlyaccessing', 'dbEditedby', 'dbMtime', 'dbUtime', 'dbLPtime', 'dbMd5', 'dbTrackTitle', 'dbArtistName', 'dbBitRate', 'dbSampleRate', 'dbFormat', 'dbLength', 'dbAlbumTitle', 'dbGenre', 'dbComments', 'dbYear', 'dbTrackNumber', 'dbChannels', 'dbUrl', 'dbBpm', 'dbRating', 'dbEncodedBy', 'dbDiscNumber', 'dbMood', 'dbLabel', 'dbComposer', 'dbEncoder', 'dbChecksum', 'dbLyrics', 'dbOrchestra', 'dbConductor', 'dbLyricist', 'dbOriginalLyricist', 'dbRadioStationName', 'dbInfoUrl', 'dbArtistUrl', 'dbAudioSourceUrl', 'dbRadioStationUrl', 'dbBuyThisUrl', 'dbIsrcNumber', 'dbCatalogNumber', 'dbOriginalArtist', 'dbCopyright', 'dbReportDatetime', 'dbReportLocation', 'dbReportOrganization', 'dbSubject', 'dbContributor', 'dbLanguage', 'dbFileExists', 'dbSoundcloudId', 'dbSoundcloudErrorCode', 'dbSoundcloudErrorMsg', 'dbSoundcloudLinkToFile', 'dbSoundCloundUploadTime', 'dbReplayGain', 'ownerId', ),
|
||||
BasePeer::TYPE_PHPNAME => array ('DbId', 'DbName', 'DbMime', 'DbFtype', 'DbDirectory', 'DbFilepath', 'DbState', 'DbCurrentlyaccessing', 'DbEditedby', 'DbMtime', 'DbUtime', 'DbLPtime', 'DbMd5', 'DbTrackTitle', 'DbArtistName', 'DbBitRate', 'DbSampleRate', 'DbFormat', 'DbLength', 'DbAlbumTitle', 'DbGenre', 'DbComments', 'DbYear', 'DbTrackNumber', 'DbChannels', 'DbUrl', 'DbBpm', 'DbRating', 'DbEncodedBy', 'DbDiscNumber', 'DbMood', 'DbLabel', 'DbComposer', 'DbEncoder', 'DbChecksum', 'DbLyrics', 'DbOrchestra', 'DbConductor', 'DbLyricist', 'DbOriginalLyricist', 'DbRadioStationName', 'DbInfoUrl', 'DbArtistUrl', 'DbAudioSourceUrl', 'DbRadioStationUrl', 'DbBuyThisUrl', 'DbIsrcNumber', 'DbCatalogNumber', 'DbOriginalArtist', 'DbCopyright', 'DbReportDatetime', 'DbReportLocation', 'DbReportOrganization', 'DbSubject', 'DbContributor', 'DbLanguage', 'DbFileExists', 'DbSoundcloudId', 'DbSoundcloudErrorCode', 'DbSoundcloudErrorMsg', 'DbSoundcloudLinkToFile', 'DbSoundCloundUploadTime', 'DbReplayGain', 'DbOwnerId', ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId', 'dbName', 'dbMime', 'dbFtype', 'dbDirectory', 'dbFilepath', 'dbState', 'dbCurrentlyaccessing', 'dbEditedby', 'dbMtime', 'dbUtime', 'dbLPtime', 'dbMd5', 'dbTrackTitle', 'dbArtistName', 'dbBitRate', 'dbSampleRate', 'dbFormat', 'dbLength', 'dbAlbumTitle', 'dbGenre', 'dbComments', 'dbYear', 'dbTrackNumber', 'dbChannels', 'dbUrl', 'dbBpm', 'dbRating', 'dbEncodedBy', 'dbDiscNumber', 'dbMood', 'dbLabel', 'dbComposer', 'dbEncoder', 'dbChecksum', 'dbLyrics', 'dbOrchestra', 'dbConductor', 'dbLyricist', 'dbOriginalLyricist', 'dbRadioStationName', 'dbInfoUrl', 'dbArtistUrl', 'dbAudioSourceUrl', 'dbRadioStationUrl', 'dbBuyThisUrl', 'dbIsrcNumber', 'dbCatalogNumber', 'dbOriginalArtist', 'dbCopyright', 'dbReportDatetime', 'dbReportLocation', 'dbReportOrganization', 'dbSubject', 'dbContributor', 'dbLanguage', 'dbFileExists', 'dbSoundcloudId', 'dbSoundcloudErrorCode', 'dbSoundcloudErrorMsg', 'dbSoundcloudLinkToFile', 'dbSoundCloundUploadTime', 'dbReplayGain', 'dbOwnerId', ),
|
||||
BasePeer::TYPE_COLNAME => array (self::ID, self::NAME, self::MIME, self::FTYPE, self::DIRECTORY, self::FILEPATH, self::STATE, self::CURRENTLYACCESSING, self::EDITEDBY, self::MTIME, self::UTIME, self::LPTIME, self::MD5, self::TRACK_TITLE, self::ARTIST_NAME, self::BIT_RATE, self::SAMPLE_RATE, self::FORMAT, self::LENGTH, self::ALBUM_TITLE, self::GENRE, self::COMMENTS, self::YEAR, self::TRACK_NUMBER, self::CHANNELS, self::URL, self::BPM, self::RATING, self::ENCODED_BY, self::DISC_NUMBER, self::MOOD, self::LABEL, self::COMPOSER, self::ENCODER, self::CHECKSUM, self::LYRICS, self::ORCHESTRA, self::CONDUCTOR, self::LYRICIST, self::ORIGINAL_LYRICIST, self::RADIO_STATION_NAME, self::INFO_URL, self::ARTIST_URL, self::AUDIO_SOURCE_URL, self::RADIO_STATION_URL, self::BUY_THIS_URL, self::ISRC_NUMBER, self::CATALOG_NUMBER, self::ORIGINAL_ARTIST, self::COPYRIGHT, self::REPORT_DATETIME, self::REPORT_LOCATION, self::REPORT_ORGANIZATION, self::SUBJECT, self::CONTRIBUTOR, self::LANGUAGE, self::FILE_EXISTS, self::SOUNDCLOUD_ID, self::SOUNDCLOUD_ERROR_CODE, self::SOUNDCLOUD_ERROR_MSG, self::SOUNDCLOUD_LINK_TO_FILE, self::SOUNDCLOUD_UPLOAD_TIME, self::REPLAY_GAIN, self::OWNER_ID, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID', 'NAME', 'MIME', 'FTYPE', 'DIRECTORY', 'FILEPATH', 'STATE', 'CURRENTLYACCESSING', 'EDITEDBY', 'MTIME', 'UTIME', 'LPTIME', 'MD5', 'TRACK_TITLE', 'ARTIST_NAME', 'BIT_RATE', 'SAMPLE_RATE', 'FORMAT', 'LENGTH', 'ALBUM_TITLE', 'GENRE', 'COMMENTS', 'YEAR', 'TRACK_NUMBER', 'CHANNELS', 'URL', 'BPM', 'RATING', 'ENCODED_BY', 'DISC_NUMBER', 'MOOD', 'LABEL', 'COMPOSER', 'ENCODER', 'CHECKSUM', 'LYRICS', 'ORCHESTRA', 'CONDUCTOR', 'LYRICIST', 'ORIGINAL_LYRICIST', 'RADIO_STATION_NAME', 'INFO_URL', 'ARTIST_URL', 'AUDIO_SOURCE_URL', 'RADIO_STATION_URL', 'BUY_THIS_URL', 'ISRC_NUMBER', 'CATALOG_NUMBER', 'ORIGINAL_ARTIST', 'COPYRIGHT', 'REPORT_DATETIME', 'REPORT_LOCATION', 'REPORT_ORGANIZATION', 'SUBJECT', 'CONTRIBUTOR', 'LANGUAGE', 'FILE_EXISTS', 'SOUNDCLOUD_ID', 'SOUNDCLOUD_ERROR_CODE', 'SOUNDCLOUD_ERROR_MSG', 'SOUNDCLOUD_LINK_TO_FILE', 'SOUNDCLOUD_UPLOAD_TIME', 'REPLAY_GAIN', 'OWNER_ID', ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id', 'name', 'mime', 'ftype', 'directory', 'filepath', 'state', 'currentlyaccessing', 'editedby', 'mtime', 'utime', 'lptime', 'md5', 'track_title', 'artist_name', 'bit_rate', 'sample_rate', 'format', 'length', 'album_title', 'genre', 'comments', 'year', 'track_number', 'channels', 'url', 'bpm', 'rating', 'encoded_by', 'disc_number', 'mood', 'label', 'composer', 'encoder', 'checksum', 'lyrics', 'orchestra', 'conductor', 'lyricist', 'original_lyricist', 'radio_station_name', 'info_url', 'artist_url', 'audio_source_url', 'radio_station_url', 'buy_this_url', 'isrc_number', 'catalog_number', 'original_artist', 'copyright', 'report_datetime', 'report_location', 'report_organization', 'subject', 'contributor', 'language', 'file_exists', 'soundcloud_id', 'soundcloud_error_code', 'soundcloud_error_msg', 'soundcloud_link_to_file', 'soundcloud_upload_time', 'replay_gain', 'owner_id', ),
|
||||
|
@ -254,8 +254,8 @@ abstract class BaseCcFilesPeer {
|
|||
* e.g. self::$fieldNames[BasePeer::TYPE_PHPNAME]['Id'] = 0
|
||||
*/
|
||||
private static $fieldKeys = array (
|
||||
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMime' => 2, 'DbFtype' => 3, 'DbDirectory' => 4, 'DbFilepath' => 5, 'DbState' => 6, 'DbCurrentlyaccessing' => 7, 'DbEditedby' => 8, 'DbMtime' => 9, 'DbUtime' => 10, 'DbLPtime' => 11, 'DbMd5' => 12, 'DbTrackTitle' => 13, 'DbArtistName' => 14, 'DbBitRate' => 15, 'DbSampleRate' => 16, 'DbFormat' => 17, 'DbLength' => 18, 'DbAlbumTitle' => 19, 'DbGenre' => 20, 'DbComments' => 21, 'DbYear' => 22, 'DbTrackNumber' => 23, 'DbChannels' => 24, 'DbUrl' => 25, 'DbBpm' => 26, 'DbRating' => 27, 'DbEncodedBy' => 28, 'DbDiscNumber' => 29, 'DbMood' => 30, 'DbLabel' => 31, 'DbComposer' => 32, 'DbEncoder' => 33, 'DbChecksum' => 34, 'DbLyrics' => 35, 'DbOrchestra' => 36, 'DbConductor' => 37, 'DbLyricist' => 38, 'DbOriginalLyricist' => 39, 'DbRadioStationName' => 40, 'DbInfoUrl' => 41, 'DbArtistUrl' => 42, 'DbAudioSourceUrl' => 43, 'DbRadioStationUrl' => 44, 'DbBuyThisUrl' => 45, 'DbIsrcNumber' => 46, 'DbCatalogNumber' => 47, 'DbOriginalArtist' => 48, 'DbCopyright' => 49, 'DbReportDatetime' => 50, 'DbReportLocation' => 51, 'DbReportOrganization' => 52, 'DbSubject' => 53, 'DbContributor' => 54, 'DbLanguage' => 55, 'DbFileExists' => 56, 'DbSoundcloudId' => 57, 'DbSoundcloudErrorCode' => 58, 'DbSoundcloudErrorMsg' => 59, 'DbSoundcloudLinkToFile' => 60, 'DbSoundCloundUploadTime' => 61, 'DbReplayGain' => 62, 'ownerId' => 63, ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMime' => 2, 'dbFtype' => 3, 'dbDirectory' => 4, 'dbFilepath' => 5, 'dbState' => 6, 'dbCurrentlyaccessing' => 7, 'dbEditedby' => 8, 'dbMtime' => 9, 'dbUtime' => 10, 'dbLPtime' => 11, 'dbMd5' => 12, 'dbTrackTitle' => 13, 'dbArtistName' => 14, 'dbBitRate' => 15, 'dbSampleRate' => 16, 'dbFormat' => 17, 'dbLength' => 18, 'dbAlbumTitle' => 19, 'dbGenre' => 20, 'dbComments' => 21, 'dbYear' => 22, 'dbTrackNumber' => 23, 'dbChannels' => 24, 'dbUrl' => 25, 'dbBpm' => 26, 'dbRating' => 27, 'dbEncodedBy' => 28, 'dbDiscNumber' => 29, 'dbMood' => 30, 'dbLabel' => 31, 'dbComposer' => 32, 'dbEncoder' => 33, 'dbChecksum' => 34, 'dbLyrics' => 35, 'dbOrchestra' => 36, 'dbConductor' => 37, 'dbLyricist' => 38, 'dbOriginalLyricist' => 39, 'dbRadioStationName' => 40, 'dbInfoUrl' => 41, 'dbArtistUrl' => 42, 'dbAudioSourceUrl' => 43, 'dbRadioStationUrl' => 44, 'dbBuyThisUrl' => 45, 'dbIsrcNumber' => 46, 'dbCatalogNumber' => 47, 'dbOriginalArtist' => 48, 'dbCopyright' => 49, 'dbReportDatetime' => 50, 'dbReportLocation' => 51, 'dbReportOrganization' => 52, 'dbSubject' => 53, 'dbContributor' => 54, 'dbLanguage' => 55, 'dbFileExists' => 56, 'dbSoundcloudId' => 57, 'dbSoundcloudErrorCode' => 58, 'dbSoundcloudErrorMsg' => 59, 'dbSoundcloudLinkToFile' => 60, 'dbSoundCloundUploadTime' => 61, 'dbReplayGain' => 62, 'ownerId' => 63, ),
|
||||
BasePeer::TYPE_PHPNAME => array ('DbId' => 0, 'DbName' => 1, 'DbMime' => 2, 'DbFtype' => 3, 'DbDirectory' => 4, 'DbFilepath' => 5, 'DbState' => 6, 'DbCurrentlyaccessing' => 7, 'DbEditedby' => 8, 'DbMtime' => 9, 'DbUtime' => 10, 'DbLPtime' => 11, 'DbMd5' => 12, 'DbTrackTitle' => 13, 'DbArtistName' => 14, 'DbBitRate' => 15, 'DbSampleRate' => 16, 'DbFormat' => 17, 'DbLength' => 18, 'DbAlbumTitle' => 19, 'DbGenre' => 20, 'DbComments' => 21, 'DbYear' => 22, 'DbTrackNumber' => 23, 'DbChannels' => 24, 'DbUrl' => 25, 'DbBpm' => 26, 'DbRating' => 27, 'DbEncodedBy' => 28, 'DbDiscNumber' => 29, 'DbMood' => 30, 'DbLabel' => 31, 'DbComposer' => 32, 'DbEncoder' => 33, 'DbChecksum' => 34, 'DbLyrics' => 35, 'DbOrchestra' => 36, 'DbConductor' => 37, 'DbLyricist' => 38, 'DbOriginalLyricist' => 39, 'DbRadioStationName' => 40, 'DbInfoUrl' => 41, 'DbArtistUrl' => 42, 'DbAudioSourceUrl' => 43, 'DbRadioStationUrl' => 44, 'DbBuyThisUrl' => 45, 'DbIsrcNumber' => 46, 'DbCatalogNumber' => 47, 'DbOriginalArtist' => 48, 'DbCopyright' => 49, 'DbReportDatetime' => 50, 'DbReportLocation' => 51, 'DbReportOrganization' => 52, 'DbSubject' => 53, 'DbContributor' => 54, 'DbLanguage' => 55, 'DbFileExists' => 56, 'DbSoundcloudId' => 57, 'DbSoundcloudErrorCode' => 58, 'DbSoundcloudErrorMsg' => 59, 'DbSoundcloudLinkToFile' => 60, 'DbSoundCloundUploadTime' => 61, 'DbReplayGain' => 62, 'DbOwnerId' => 63, ),
|
||||
BasePeer::TYPE_STUDLYPHPNAME => array ('dbId' => 0, 'dbName' => 1, 'dbMime' => 2, 'dbFtype' => 3, 'dbDirectory' => 4, 'dbFilepath' => 5, 'dbState' => 6, 'dbCurrentlyaccessing' => 7, 'dbEditedby' => 8, 'dbMtime' => 9, 'dbUtime' => 10, 'dbLPtime' => 11, 'dbMd5' => 12, 'dbTrackTitle' => 13, 'dbArtistName' => 14, 'dbBitRate' => 15, 'dbSampleRate' => 16, 'dbFormat' => 17, 'dbLength' => 18, 'dbAlbumTitle' => 19, 'dbGenre' => 20, 'dbComments' => 21, 'dbYear' => 22, 'dbTrackNumber' => 23, 'dbChannels' => 24, 'dbUrl' => 25, 'dbBpm' => 26, 'dbRating' => 27, 'dbEncodedBy' => 28, 'dbDiscNumber' => 29, 'dbMood' => 30, 'dbLabel' => 31, 'dbComposer' => 32, 'dbEncoder' => 33, 'dbChecksum' => 34, 'dbLyrics' => 35, 'dbOrchestra' => 36, 'dbConductor' => 37, 'dbLyricist' => 38, 'dbOriginalLyricist' => 39, 'dbRadioStationName' => 40, 'dbInfoUrl' => 41, 'dbArtistUrl' => 42, 'dbAudioSourceUrl' => 43, 'dbRadioStationUrl' => 44, 'dbBuyThisUrl' => 45, 'dbIsrcNumber' => 46, 'dbCatalogNumber' => 47, 'dbOriginalArtist' => 48, 'dbCopyright' => 49, 'dbReportDatetime' => 50, 'dbReportLocation' => 51, 'dbReportOrganization' => 52, 'dbSubject' => 53, 'dbContributor' => 54, 'dbLanguage' => 55, 'dbFileExists' => 56, 'dbSoundcloudId' => 57, 'dbSoundcloudErrorCode' => 58, 'dbSoundcloudErrorMsg' => 59, 'dbSoundcloudLinkToFile' => 60, 'dbSoundCloundUploadTime' => 61, 'dbReplayGain' => 62, 'dbOwnerId' => 63, ),
|
||||
BasePeer::TYPE_COLNAME => array (self::ID => 0, self::NAME => 1, self::MIME => 2, self::FTYPE => 3, self::DIRECTORY => 4, self::FILEPATH => 5, self::STATE => 6, self::CURRENTLYACCESSING => 7, self::EDITEDBY => 8, self::MTIME => 9, self::UTIME => 10, self::LPTIME => 11, self::MD5 => 12, self::TRACK_TITLE => 13, self::ARTIST_NAME => 14, self::BIT_RATE => 15, self::SAMPLE_RATE => 16, self::FORMAT => 17, self::LENGTH => 18, self::ALBUM_TITLE => 19, self::GENRE => 20, self::COMMENTS => 21, self::YEAR => 22, self::TRACK_NUMBER => 23, self::CHANNELS => 24, self::URL => 25, self::BPM => 26, self::RATING => 27, self::ENCODED_BY => 28, self::DISC_NUMBER => 29, self::MOOD => 30, self::LABEL => 31, self::COMPOSER => 32, self::ENCODER => 33, self::CHECKSUM => 34, self::LYRICS => 35, self::ORCHESTRA => 36, self::CONDUCTOR => 37, self::LYRICIST => 38, self::ORIGINAL_LYRICIST => 39, self::RADIO_STATION_NAME => 40, self::INFO_URL => 41, self::ARTIST_URL => 42, self::AUDIO_SOURCE_URL => 43, self::RADIO_STATION_URL => 44, self::BUY_THIS_URL => 45, self::ISRC_NUMBER => 46, self::CATALOG_NUMBER => 47, self::ORIGINAL_ARTIST => 48, self::COPYRIGHT => 49, self::REPORT_DATETIME => 50, self::REPORT_LOCATION => 51, self::REPORT_ORGANIZATION => 52, self::SUBJECT => 53, self::CONTRIBUTOR => 54, self::LANGUAGE => 55, self::FILE_EXISTS => 56, self::SOUNDCLOUD_ID => 57, self::SOUNDCLOUD_ERROR_CODE => 58, self::SOUNDCLOUD_ERROR_MSG => 59, self::SOUNDCLOUD_LINK_TO_FILE => 60, self::SOUNDCLOUD_UPLOAD_TIME => 61, self::REPLAY_GAIN => 62, self::OWNER_ID => 63, ),
|
||||
BasePeer::TYPE_RAW_COLNAME => array ('ID' => 0, 'NAME' => 1, 'MIME' => 2, 'FTYPE' => 3, 'DIRECTORY' => 4, 'FILEPATH' => 5, 'STATE' => 6, 'CURRENTLYACCESSING' => 7, 'EDITEDBY' => 8, 'MTIME' => 9, 'UTIME' => 10, 'LPTIME' => 11, 'MD5' => 12, 'TRACK_TITLE' => 13, 'ARTIST_NAME' => 14, 'BIT_RATE' => 15, 'SAMPLE_RATE' => 16, 'FORMAT' => 17, 'LENGTH' => 18, 'ALBUM_TITLE' => 19, 'GENRE' => 20, 'COMMENTS' => 21, 'YEAR' => 22, 'TRACK_NUMBER' => 23, 'CHANNELS' => 24, 'URL' => 25, 'BPM' => 26, 'RATING' => 27, 'ENCODED_BY' => 28, 'DISC_NUMBER' => 29, 'MOOD' => 30, 'LABEL' => 31, 'COMPOSER' => 32, 'ENCODER' => 33, 'CHECKSUM' => 34, 'LYRICS' => 35, 'ORCHESTRA' => 36, 'CONDUCTOR' => 37, 'LYRICIST' => 38, 'ORIGINAL_LYRICIST' => 39, 'RADIO_STATION_NAME' => 40, 'INFO_URL' => 41, 'ARTIST_URL' => 42, 'AUDIO_SOURCE_URL' => 43, 'RADIO_STATION_URL' => 44, 'BUY_THIS_URL' => 45, 'ISRC_NUMBER' => 46, 'CATALOG_NUMBER' => 47, 'ORIGINAL_ARTIST' => 48, 'COPYRIGHT' => 49, 'REPORT_DATETIME' => 50, 'REPORT_LOCATION' => 51, 'REPORT_ORGANIZATION' => 52, 'SUBJECT' => 53, 'CONTRIBUTOR' => 54, 'LANGUAGE' => 55, 'FILE_EXISTS' => 56, 'SOUNDCLOUD_ID' => 57, 'SOUNDCLOUD_ERROR_CODE' => 58, 'SOUNDCLOUD_ERROR_MSG' => 59, 'SOUNDCLOUD_LINK_TO_FILE' => 60, 'SOUNDCLOUD_UPLOAD_TIME' => 61, 'REPLAY_GAIN' => 62, 'OWNER_ID' => 63, ),
|
||||
BasePeer::TYPE_FIELDNAME => array ('id' => 0, 'name' => 1, 'mime' => 2, 'ftype' => 3, 'directory' => 4, 'filepath' => 5, 'state' => 6, 'currentlyaccessing' => 7, 'editedby' => 8, 'mtime' => 9, 'utime' => 10, 'lptime' => 11, 'md5' => 12, 'track_title' => 13, 'artist_name' => 14, 'bit_rate' => 15, 'sample_rate' => 16, 'format' => 17, 'length' => 18, 'album_title' => 19, 'genre' => 20, 'comments' => 21, 'year' => 22, 'track_number' => 23, 'channels' => 24, 'url' => 25, 'bpm' => 26, 'rating' => 27, 'encoded_by' => 28, 'disc_number' => 29, 'mood' => 30, 'label' => 31, 'composer' => 32, 'encoder' => 33, 'checksum' => 34, 'lyrics' => 35, 'orchestra' => 36, 'conductor' => 37, 'lyricist' => 38, 'original_lyricist' => 39, 'radio_station_name' => 40, 'info_url' => 41, 'artist_url' => 42, 'audio_source_url' => 43, 'radio_station_url' => 44, 'buy_this_url' => 45, 'isrc_number' => 46, 'catalog_number' => 47, 'original_artist' => 48, 'copyright' => 49, 'report_datetime' => 50, 'report_location' => 51, 'report_organization' => 52, 'subject' => 53, 'contributor' => 54, 'language' => 55, 'file_exists' => 56, 'soundcloud_id' => 57, 'soundcloud_error_code' => 58, 'soundcloud_error_msg' => 59, 'soundcloud_link_to_file' => 60, 'soundcloud_upload_time' => 61, 'replay_gain' => 62, 'owner_id' => 63, ),
|
||||
|
@ -758,7 +758,7 @@ abstract class BaseCcFilesPeer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the number of rows matching criteria, joining the related CcSubjsRelatedByownerId table
|
||||
* Returns the number of rows matching criteria, joining the related Owner table
|
||||
*
|
||||
* @param Criteria $criteria
|
||||
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
|
||||
|
@ -766,7 +766,7 @@ abstract class BaseCcFilesPeer {
|
|||
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
|
||||
* @return int Number of matching rows.
|
||||
*/
|
||||
public static function doCountJoinCcSubjsRelatedByownerId(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
public static function doCountJoinOwner(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
{
|
||||
// we're going to modify criteria, so copy it first
|
||||
$criteria = clone $criteria;
|
||||
|
@ -916,7 +916,7 @@ abstract class BaseCcFilesPeer {
|
|||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doSelectJoinCcSubjsRelatedByownerId(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
public static function doSelectJoinOwner(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
{
|
||||
$criteria = clone $criteria;
|
||||
|
||||
|
@ -962,7 +962,7 @@ abstract class BaseCcFilesPeer {
|
|||
} // if obj2 already loaded
|
||||
|
||||
// Add the $obj1 (CcFiles) to $obj2 (CcSubjs)
|
||||
$obj2->addCcFilesRelatedByownerId($obj1);
|
||||
$obj2->addCcFilesRelatedByDbOwnerId($obj1);
|
||||
|
||||
} // if joined row was not null
|
||||
|
||||
|
@ -1227,7 +1227,7 @@ abstract class BaseCcFilesPeer {
|
|||
} // if obj2 loaded
|
||||
|
||||
// Add the $obj1 (CcFiles) to the collection in $obj2 (CcSubjs)
|
||||
$obj2->addCcFilesRelatedByownerId($obj1);
|
||||
$obj2->addCcFilesRelatedByDbOwnerId($obj1);
|
||||
} // if joined row not null
|
||||
|
||||
// Add objects for joined CcSubjs rows
|
||||
|
@ -1274,7 +1274,7 @@ abstract class BaseCcFilesPeer {
|
|||
|
||||
|
||||
/**
|
||||
* Returns the number of rows matching criteria, joining the related CcSubjsRelatedByownerId table
|
||||
* Returns the number of rows matching criteria, joining the related Owner table
|
||||
*
|
||||
* @param Criteria $criteria
|
||||
* @param boolean $distinct Whether to select only distinct columns; deprecated: use Criteria->setDistinct() instead.
|
||||
|
@ -1282,7 +1282,7 @@ abstract class BaseCcFilesPeer {
|
|||
* @param String $join_behavior the type of joins to use, defaults to Criteria::LEFT_JOIN
|
||||
* @return int Number of matching rows.
|
||||
*/
|
||||
public static function doCountJoinAllExceptCcSubjsRelatedByownerId(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
public static function doCountJoinAllExceptOwner(Criteria $criteria, $distinct = false, PropelPDO $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
{
|
||||
// we're going to modify criteria, so copy it first
|
||||
$criteria = clone $criteria;
|
||||
|
@ -1426,7 +1426,7 @@ abstract class BaseCcFilesPeer {
|
|||
|
||||
|
||||
/**
|
||||
* Selects a collection of CcFiles objects pre-filled with all related objects except CcSubjsRelatedByownerId.
|
||||
* Selects a collection of CcFiles objects pre-filled with all related objects except Owner.
|
||||
*
|
||||
* @param Criteria $criteria
|
||||
* @param PropelPDO $con
|
||||
|
@ -1435,7 +1435,7 @@ abstract class BaseCcFilesPeer {
|
|||
* @throws PropelException Any exceptions caught during processing will be
|
||||
* rethrown wrapped into a PropelException.
|
||||
*/
|
||||
public static function doSelectJoinAllExceptCcSubjsRelatedByownerId(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
public static function doSelectJoinAllExceptOwner(Criteria $criteria, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
{
|
||||
$criteria = clone $criteria;
|
||||
|
||||
|
@ -1638,7 +1638,7 @@ abstract class BaseCcFilesPeer {
|
|||
} // if $obj2 already loaded
|
||||
|
||||
// Add the $obj1 (CcFiles) to the collection in $obj2 (CcSubjs)
|
||||
$obj2->addCcFilesRelatedByownerId($obj1);
|
||||
$obj2->addCcFilesRelatedByDbOwnerId($obj1);
|
||||
|
||||
} // if joined row is not null
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
* @method CcFilesQuery orderByDbSoundcloudLinkToFile($order = Criteria::ASC) Order by the soundcloud_link_to_file column
|
||||
* @method CcFilesQuery orderByDbSoundCloundUploadTime($order = Criteria::ASC) Order by the soundcloud_upload_time column
|
||||
* @method CcFilesQuery orderByDbReplayGain($order = Criteria::ASC) Order by the replay_gain column
|
||||
* @method CcFilesQuery orderByownerId($order = Criteria::ASC) Order by the owner_id column
|
||||
* @method CcFilesQuery orderByDbOwnerId($order = Criteria::ASC) Order by the owner_id column
|
||||
*
|
||||
* @method CcFilesQuery groupByDbId() Group by the id column
|
||||
* @method CcFilesQuery groupByDbName() Group by the name column
|
||||
|
@ -134,15 +134,15 @@
|
|||
* @method CcFilesQuery groupByDbSoundcloudLinkToFile() Group by the soundcloud_link_to_file column
|
||||
* @method CcFilesQuery groupByDbSoundCloundUploadTime() Group by the soundcloud_upload_time column
|
||||
* @method CcFilesQuery groupByDbReplayGain() Group by the replay_gain column
|
||||
* @method CcFilesQuery groupByownerId() Group by the owner_id column
|
||||
* @method CcFilesQuery groupByDbOwnerId() Group by the owner_id column
|
||||
*
|
||||
* @method CcFilesQuery leftJoin($relation) Adds a LEFT JOIN clause to the query
|
||||
* @method CcFilesQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
||||
* @method CcFilesQuery innerJoin($relation) Adds a INNER JOIN clause to the query
|
||||
*
|
||||
* @method CcFilesQuery leftJoinCcSubjsRelatedByownerId($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjsRelatedByownerId relation
|
||||
* @method CcFilesQuery rightJoinCcSubjsRelatedByownerId($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjsRelatedByownerId relation
|
||||
* @method CcFilesQuery innerJoinCcSubjsRelatedByownerId($relationAlias = '') Adds a INNER JOIN clause to the query using the CcSubjsRelatedByownerId relation
|
||||
* @method CcFilesQuery leftJoinOwner($relationAlias = '') Adds a LEFT JOIN clause to the query using the Owner relation
|
||||
* @method CcFilesQuery rightJoinOwner($relationAlias = '') Adds a RIGHT JOIN clause to the query using the Owner relation
|
||||
* @method CcFilesQuery innerJoinOwner($relationAlias = '') Adds a INNER JOIN clause to the query using the Owner relation
|
||||
*
|
||||
* @method CcFilesQuery leftJoinCcSubjsRelatedByDbEditedby($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation
|
||||
* @method CcFilesQuery rightJoinCcSubjsRelatedByDbEditedby($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcSubjsRelatedByDbEditedby relation
|
||||
|
@ -234,7 +234,7 @@
|
|||
* @method CcFiles findOneByDbSoundcloudLinkToFile(string $soundcloud_link_to_file) Return the first CcFiles filtered by the soundcloud_link_to_file column
|
||||
* @method CcFiles findOneByDbSoundCloundUploadTime(string $soundcloud_upload_time) Return the first CcFiles filtered by the soundcloud_upload_time column
|
||||
* @method CcFiles findOneByDbReplayGain(string $replay_gain) Return the first CcFiles filtered by the replay_gain column
|
||||
* @method CcFiles findOneByownerId(int $owner_id) Return the first CcFiles filtered by the owner_id column
|
||||
* @method CcFiles findOneByDbOwnerId(int $owner_id) Return the first CcFiles filtered by the owner_id column
|
||||
*
|
||||
* @method array findByDbId(int $id) Return CcFiles objects filtered by the id column
|
||||
* @method array findByDbName(string $name) Return CcFiles objects filtered by the name column
|
||||
|
@ -299,7 +299,7 @@
|
|||
* @method array findByDbSoundcloudLinkToFile(string $soundcloud_link_to_file) Return CcFiles objects filtered by the soundcloud_link_to_file column
|
||||
* @method array findByDbSoundCloundUploadTime(string $soundcloud_upload_time) Return CcFiles objects filtered by the soundcloud_upload_time column
|
||||
* @method array findByDbReplayGain(string $replay_gain) Return CcFiles objects filtered by the replay_gain column
|
||||
* @method array findByownerId(int $owner_id) Return CcFiles objects filtered by the owner_id column
|
||||
* @method array findByDbOwnerId(int $owner_id) Return CcFiles objects filtered by the owner_id column
|
||||
*
|
||||
* @package propel.generator.airtime.om
|
||||
*/
|
||||
|
@ -1914,22 +1914,22 @@ abstract class BaseCcFilesQuery extends ModelCriteria
|
|||
/**
|
||||
* Filter the query on the owner_id column
|
||||
*
|
||||
* @param int|array $ownerId The value to use as filter.
|
||||
* @param int|array $dbOwnerId The value to use as filter.
|
||||
* Accepts an associative array('min' => $minValue, 'max' => $maxValue)
|
||||
* @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
|
||||
*
|
||||
* @return CcFilesQuery The current query, for fluid interface
|
||||
*/
|
||||
public function filterByownerId($ownerId = null, $comparison = null)
|
||||
public function filterByDbOwnerId($dbOwnerId = null, $comparison = null)
|
||||
{
|
||||
if (is_array($ownerId)) {
|
||||
if (is_array($dbOwnerId)) {
|
||||
$useMinMax = false;
|
||||
if (isset($ownerId['min'])) {
|
||||
$this->addUsingAlias(CcFilesPeer::OWNER_ID, $ownerId['min'], Criteria::GREATER_EQUAL);
|
||||
if (isset($dbOwnerId['min'])) {
|
||||
$this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId['min'], Criteria::GREATER_EQUAL);
|
||||
$useMinMax = true;
|
||||
}
|
||||
if (isset($ownerId['max'])) {
|
||||
$this->addUsingAlias(CcFilesPeer::OWNER_ID, $ownerId['max'], Criteria::LESS_EQUAL);
|
||||
if (isset($dbOwnerId['max'])) {
|
||||
$this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId['max'], Criteria::LESS_EQUAL);
|
||||
$useMinMax = true;
|
||||
}
|
||||
if ($useMinMax) {
|
||||
|
@ -1939,7 +1939,7 @@ abstract class BaseCcFilesQuery extends ModelCriteria
|
|||
$comparison = Criteria::IN;
|
||||
}
|
||||
}
|
||||
return $this->addUsingAlias(CcFilesPeer::OWNER_ID, $ownerId, $comparison);
|
||||
return $this->addUsingAlias(CcFilesPeer::OWNER_ID, $dbOwnerId, $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1950,24 +1950,24 @@ abstract class BaseCcFilesQuery extends ModelCriteria
|
|||
*
|
||||
* @return CcFilesQuery The current query, for fluid interface
|
||||
*/
|
||||
public function filterByCcSubjsRelatedByownerId($ccSubjs, $comparison = null)
|
||||
public function filterByOwner($ccSubjs, $comparison = null)
|
||||
{
|
||||
return $this
|
||||
->addUsingAlias(CcFilesPeer::OWNER_ID, $ccSubjs->getDbId(), $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a JOIN clause to the query using the CcSubjsRelatedByownerId relation
|
||||
* Adds a JOIN clause to the query using the Owner relation
|
||||
*
|
||||
* @param string $relationAlias optional alias for the relation
|
||||
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
|
||||
*
|
||||
* @return CcFilesQuery The current query, for fluid interface
|
||||
*/
|
||||
public function joinCcSubjsRelatedByownerId($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
public function joinOwner($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
{
|
||||
$tableMap = $this->getTableMap();
|
||||
$relationMap = $tableMap->getRelation('CcSubjsRelatedByownerId');
|
||||
$relationMap = $tableMap->getRelation('Owner');
|
||||
|
||||
// create a ModelJoin object for this join
|
||||
$join = new ModelJoin();
|
||||
|
@ -1982,14 +1982,14 @@ abstract class BaseCcFilesQuery extends ModelCriteria
|
|||
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
|
||||
$this->addJoinObject($join, $relationAlias);
|
||||
} else {
|
||||
$this->addJoinObject($join, 'CcSubjsRelatedByownerId');
|
||||
$this->addJoinObject($join, 'Owner');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the CcSubjsRelatedByownerId relation CcSubjs object
|
||||
* Use the Owner relation CcSubjs object
|
||||
*
|
||||
* @see useQuery()
|
||||
*
|
||||
|
@ -1999,11 +1999,11 @@ abstract class BaseCcFilesQuery extends ModelCriteria
|
|||
*
|
||||
* @return CcSubjsQuery A secondary query class using the current class as primary query
|
||||
*/
|
||||
public function useCcSubjsRelatedByownerIdQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
public function useOwnerQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
{
|
||||
return $this
|
||||
->joinCcSubjsRelatedByownerId($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'CcSubjsRelatedByownerId', 'CcSubjsQuery');
|
||||
->joinOwner($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'Owner', 'CcSubjsQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -999,10 +999,10 @@ abstract class BaseCcMusicDirs extends BaseObject implements Persistent
|
|||
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
|
||||
* @return PropelCollection|array CcFiles[] List of CcFiles objects
|
||||
*/
|
||||
public function getCcFilessJoinCcSubjsRelatedByownerId($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
public function getCcFilessJoinOwner($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
{
|
||||
$query = CcFilesQuery::create(null, $criteria);
|
||||
$query->joinWith('CcSubjsRelatedByownerId', $join_behavior);
|
||||
$query->joinWith('Owner', $join_behavior);
|
||||
|
||||
return $this->getCcFiless($query, $con);
|
||||
}
|
||||
|
|
|
@ -111,7 +111,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
/**
|
||||
* @var array CcFiles[] Collection to store aggregation of CcFiles objects.
|
||||
*/
|
||||
protected $collCcFilessRelatedByownerId;
|
||||
protected $collCcFilessRelatedByDbOwnerId;
|
||||
|
||||
/**
|
||||
* @var array CcFiles[] Collection to store aggregation of CcFiles objects.
|
||||
|
@ -826,7 +826,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
|
||||
if ($deep) { // also de-associate any related objects?
|
||||
|
||||
$this->collCcFilessRelatedByownerId = null;
|
||||
$this->collCcFilessRelatedByDbOwnerId = null;
|
||||
|
||||
$this->collCcFilessRelatedByDbEditedby = null;
|
||||
|
||||
|
@ -977,8 +977,8 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
$this->resetModified(); // [HL] After being saved an object is no longer 'modified'
|
||||
}
|
||||
|
||||
if ($this->collCcFilessRelatedByownerId !== null) {
|
||||
foreach ($this->collCcFilessRelatedByownerId as $referrerFK) {
|
||||
if ($this->collCcFilessRelatedByDbOwnerId !== null) {
|
||||
foreach ($this->collCcFilessRelatedByDbOwnerId as $referrerFK) {
|
||||
if (!$referrerFK->isDeleted()) {
|
||||
$affectedRows += $referrerFK->save($con);
|
||||
}
|
||||
|
@ -1120,8 +1120,8 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
}
|
||||
|
||||
|
||||
if ($this->collCcFilessRelatedByownerId !== null) {
|
||||
foreach ($this->collCcFilessRelatedByownerId as $referrerFK) {
|
||||
if ($this->collCcFilessRelatedByDbOwnerId !== null) {
|
||||
foreach ($this->collCcFilessRelatedByDbOwnerId as $referrerFK) {
|
||||
if (!$referrerFK->validate($columns)) {
|
||||
$failureMap = array_merge($failureMap, $referrerFK->getValidationFailures());
|
||||
}
|
||||
|
@ -1510,9 +1510,9 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
// the getter/setter methods for fkey referrer objects.
|
||||
$copyObj->setNew(false);
|
||||
|
||||
foreach ($this->getCcFilessRelatedByownerId() as $relObj) {
|
||||
foreach ($this->getCcFilessRelatedByDbOwnerId() as $relObj) {
|
||||
if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves
|
||||
$copyObj->addCcFilesRelatedByownerId($relObj->copy($deepCopy));
|
||||
$copyObj->addCcFilesRelatedByDbOwnerId($relObj->copy($deepCopy));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1610,32 +1610,32 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
}
|
||||
|
||||
/**
|
||||
* Clears out the collCcFilessRelatedByownerId collection
|
||||
* Clears out the collCcFilessRelatedByDbOwnerId 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 addCcFilessRelatedByownerId()
|
||||
* @see addCcFilessRelatedByDbOwnerId()
|
||||
*/
|
||||
public function clearCcFilessRelatedByownerId()
|
||||
public function clearCcFilessRelatedByDbOwnerId()
|
||||
{
|
||||
$this->collCcFilessRelatedByownerId = null; // important to set this to NULL since that means it is uninitialized
|
||||
$this->collCcFilessRelatedByDbOwnerId = null; // important to set this to NULL since that means it is uninitialized
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes the collCcFilessRelatedByownerId collection.
|
||||
* Initializes the collCcFilessRelatedByDbOwnerId collection.
|
||||
*
|
||||
* By default this just sets the collCcFilessRelatedByownerId collection to an empty array (like clearcollCcFilessRelatedByownerId());
|
||||
* By default this just sets the collCcFilessRelatedByDbOwnerId collection to an empty array (like clearcollCcFilessRelatedByDbOwnerId());
|
||||
* 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 initCcFilessRelatedByownerId()
|
||||
public function initCcFilessRelatedByDbOwnerId()
|
||||
{
|
||||
$this->collCcFilessRelatedByownerId = new PropelObjectCollection();
|
||||
$this->collCcFilessRelatedByownerId->setModel('CcFiles');
|
||||
$this->collCcFilessRelatedByDbOwnerId = new PropelObjectCollection();
|
||||
$this->collCcFilessRelatedByDbOwnerId->setModel('CcFiles');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1652,23 +1652,23 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
* @return PropelCollection|array CcFiles[] List of CcFiles objects
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function getCcFilessRelatedByownerId($criteria = null, PropelPDO $con = null)
|
||||
public function getCcFilessRelatedByDbOwnerId($criteria = null, PropelPDO $con = null)
|
||||
{
|
||||
if(null === $this->collCcFilessRelatedByownerId || null !== $criteria) {
|
||||
if ($this->isNew() && null === $this->collCcFilessRelatedByownerId) {
|
||||
if(null === $this->collCcFilessRelatedByDbOwnerId || null !== $criteria) {
|
||||
if ($this->isNew() && null === $this->collCcFilessRelatedByDbOwnerId) {
|
||||
// return empty collection
|
||||
$this->initCcFilessRelatedByownerId();
|
||||
$this->initCcFilessRelatedByDbOwnerId();
|
||||
} else {
|
||||
$collCcFilessRelatedByownerId = CcFilesQuery::create(null, $criteria)
|
||||
->filterByCcSubjsRelatedByownerId($this)
|
||||
$collCcFilessRelatedByDbOwnerId = CcFilesQuery::create(null, $criteria)
|
||||
->filterByOwner($this)
|
||||
->find($con);
|
||||
if (null !== $criteria) {
|
||||
return $collCcFilessRelatedByownerId;
|
||||
return $collCcFilessRelatedByDbOwnerId;
|
||||
}
|
||||
$this->collCcFilessRelatedByownerId = $collCcFilessRelatedByownerId;
|
||||
$this->collCcFilessRelatedByDbOwnerId = $collCcFilessRelatedByDbOwnerId;
|
||||
}
|
||||
}
|
||||
return $this->collCcFilessRelatedByownerId;
|
||||
return $this->collCcFilessRelatedByDbOwnerId;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1680,10 +1680,10 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
* @return int Count of related CcFiles objects.
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function countCcFilessRelatedByownerId(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
|
||||
public function countCcFilessRelatedByDbOwnerId(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)
|
||||
{
|
||||
if(null === $this->collCcFilessRelatedByownerId || null !== $criteria) {
|
||||
if ($this->isNew() && null === $this->collCcFilessRelatedByownerId) {
|
||||
if(null === $this->collCcFilessRelatedByDbOwnerId || null !== $criteria) {
|
||||
if ($this->isNew() && null === $this->collCcFilessRelatedByDbOwnerId) {
|
||||
return 0;
|
||||
} else {
|
||||
$query = CcFilesQuery::create(null, $criteria);
|
||||
|
@ -1691,11 +1691,11 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
$query->distinct();
|
||||
}
|
||||
return $query
|
||||
->filterByCcSubjsRelatedByownerId($this)
|
||||
->filterByOwner($this)
|
||||
->count($con);
|
||||
}
|
||||
} else {
|
||||
return count($this->collCcFilessRelatedByownerId);
|
||||
return count($this->collCcFilessRelatedByDbOwnerId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1707,14 +1707,14 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
* @return void
|
||||
* @throws PropelException
|
||||
*/
|
||||
public function addCcFilesRelatedByownerId(CcFiles $l)
|
||||
public function addCcFilesRelatedByDbOwnerId(CcFiles $l)
|
||||
{
|
||||
if ($this->collCcFilessRelatedByownerId === null) {
|
||||
$this->initCcFilessRelatedByownerId();
|
||||
if ($this->collCcFilessRelatedByDbOwnerId === null) {
|
||||
$this->initCcFilessRelatedByDbOwnerId();
|
||||
}
|
||||
if (!$this->collCcFilessRelatedByownerId->contains($l)) { // only add it if the **same** object is not already associated
|
||||
$this->collCcFilessRelatedByownerId[]= $l;
|
||||
$l->setCcSubjsRelatedByownerId($this);
|
||||
if (!$this->collCcFilessRelatedByDbOwnerId->contains($l)) { // only add it if the **same** object is not already associated
|
||||
$this->collCcFilessRelatedByDbOwnerId[]= $l;
|
||||
$l->setOwner($this);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1724,7 +1724,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
* 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 CcFilessRelatedByownerId from storage.
|
||||
* 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
|
||||
|
@ -1735,12 +1735,12 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
* @param string $join_behavior optional join type to use (defaults to Criteria::LEFT_JOIN)
|
||||
* @return PropelCollection|array CcFiles[] List of CcFiles objects
|
||||
*/
|
||||
public function getCcFilessRelatedByownerIdJoinCcMusicDirs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
public function getCcFilessRelatedByDbOwnerIdJoinCcMusicDirs($criteria = null, $con = null, $join_behavior = Criteria::LEFT_JOIN)
|
||||
{
|
||||
$query = CcFilesQuery::create(null, $criteria);
|
||||
$query->joinWith('CcMusicDirs', $join_behavior);
|
||||
|
||||
return $this->getCcFilessRelatedByownerId($query, $con);
|
||||
return $this->getCcFilessRelatedByDbOwnerId($query, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2704,8 +2704,8 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
public function clearAllReferences($deep = false)
|
||||
{
|
||||
if ($deep) {
|
||||
if ($this->collCcFilessRelatedByownerId) {
|
||||
foreach ((array) $this->collCcFilessRelatedByownerId as $o) {
|
||||
if ($this->collCcFilessRelatedByDbOwnerId) {
|
||||
foreach ((array) $this->collCcFilessRelatedByDbOwnerId as $o) {
|
||||
$o->clearAllReferences($deep);
|
||||
}
|
||||
}
|
||||
|
@ -2751,7 +2751,7 @@ abstract class BaseCcSubjs extends BaseObject implements Persistent
|
|||
}
|
||||
} // if ($deep)
|
||||
|
||||
$this->collCcFilessRelatedByownerId = null;
|
||||
$this->collCcFilessRelatedByDbOwnerId = null;
|
||||
$this->collCcFilessRelatedByDbEditedby = null;
|
||||
$this->collCcPermss = null;
|
||||
$this->collCcShowHostss = null;
|
||||
|
|
|
@ -38,9 +38,9 @@
|
|||
* @method CcSubjsQuery rightJoin($relation) Adds a RIGHT JOIN clause to the query
|
||||
* @method CcSubjsQuery innerJoin($relation) Adds a INNER JOIN clause to the query
|
||||
*
|
||||
* @method CcSubjsQuery leftJoinCcFilesRelatedByownerId($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByownerId relation
|
||||
* @method CcSubjsQuery rightJoinCcFilesRelatedByownerId($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByownerId relation
|
||||
* @method CcSubjsQuery innerJoinCcFilesRelatedByownerId($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFilesRelatedByownerId relation
|
||||
* @method CcSubjsQuery leftJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
|
||||
* @method CcSubjsQuery rightJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
|
||||
* @method CcSubjsQuery innerJoinCcFilesRelatedByDbOwnerId($relationAlias = '') Adds a INNER JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
|
||||
*
|
||||
* @method CcSubjsQuery leftJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a LEFT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation
|
||||
* @method CcSubjsQuery rightJoinCcFilesRelatedByDbEditedby($relationAlias = '') Adds a RIGHT JOIN clause to the query using the CcFilesRelatedByDbEditedby relation
|
||||
|
@ -529,24 +529,24 @@ abstract class BaseCcSubjsQuery extends ModelCriteria
|
|||
*
|
||||
* @return CcSubjsQuery The current query, for fluid interface
|
||||
*/
|
||||
public function filterByCcFilesRelatedByownerId($ccFiles, $comparison = null)
|
||||
public function filterByCcFilesRelatedByDbOwnerId($ccFiles, $comparison = null)
|
||||
{
|
||||
return $this
|
||||
->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getownerId(), $comparison);
|
||||
->addUsingAlias(CcSubjsPeer::ID, $ccFiles->getDbOwnerId(), $comparison);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a JOIN clause to the query using the CcFilesRelatedByownerId relation
|
||||
* Adds a JOIN clause to the query using the CcFilesRelatedByDbOwnerId relation
|
||||
*
|
||||
* @param string $relationAlias optional alias for the relation
|
||||
* @param string $joinType Accepted values are null, 'left join', 'right join', 'inner join'
|
||||
*
|
||||
* @return CcSubjsQuery The current query, for fluid interface
|
||||
*/
|
||||
public function joinCcFilesRelatedByownerId($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
public function joinCcFilesRelatedByDbOwnerId($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
{
|
||||
$tableMap = $this->getTableMap();
|
||||
$relationMap = $tableMap->getRelation('CcFilesRelatedByownerId');
|
||||
$relationMap = $tableMap->getRelation('CcFilesRelatedByDbOwnerId');
|
||||
|
||||
// create a ModelJoin object for this join
|
||||
$join = new ModelJoin();
|
||||
|
@ -561,14 +561,14 @@ abstract class BaseCcSubjsQuery extends ModelCriteria
|
|||
$this->addAlias($relationAlias, $relationMap->getRightTable()->getName());
|
||||
$this->addJoinObject($join, $relationAlias);
|
||||
} else {
|
||||
$this->addJoinObject($join, 'CcFilesRelatedByownerId');
|
||||
$this->addJoinObject($join, 'CcFilesRelatedByDbOwnerId');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use the CcFilesRelatedByownerId relation CcFiles object
|
||||
* Use the CcFilesRelatedByDbOwnerId relation CcFiles object
|
||||
*
|
||||
* @see useQuery()
|
||||
*
|
||||
|
@ -578,11 +578,11 @@ abstract class BaseCcSubjsQuery extends ModelCriteria
|
|||
*
|
||||
* @return CcFilesQuery A secondary query class using the current class as primary query
|
||||
*/
|
||||
public function useCcFilesRelatedByownerIdQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
public function useCcFilesRelatedByDbOwnerIdQuery($relationAlias = '', $joinType = Criteria::LEFT_JOIN)
|
||||
{
|
||||
return $this
|
||||
->joinCcFilesRelatedByownerId($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByownerId', 'CcFilesQuery');
|
||||
->joinCcFilesRelatedByDbOwnerId($relationAlias, $joinType)
|
||||
->useQuery($relationAlias ? $relationAlias : 'CcFilesRelatedByDbOwnerId', 'CcFilesQuery');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue