/** * Sets contents of passed object to values from current object. * * If desired, this method can also make copies of all associated (fkey referrers) * objects. * * @param object $copyObj An object of CcFiles (or compatible) type. * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. * @throws PropelException */ public function copyInto($copyObj, $deepCopy = false) { $copyObj->setDbName($this->name); $copyObj->setDbMime($this->mime); $copyObj->setDbFtype($this->ftype); $copyObj->setDbDirectory($this->directory); $copyObj->setDbFilepath($this->filepath); $copyObj->setDbState($this->state); $copyObj->setDbCurrentlyaccessing($this->currentlyaccessing); $copyObj->setDbEditedby($this->editedby); $copyObj->setDbMtime($this->mtime); $copyObj->setDbUtime($this->utime); $copyObj->setDbLPtime($this->lptime); $copyObj->setDbMd5($this->md5); $copyObj->setDbTrackTitle($this->track_title); $copyObj->setDbArtistName($this->artist_name); $copyObj->setDbBitRate($this->bit_rate); $copyObj->setDbSampleRate($this->sample_rate); $copyObj->setDbFormat($this->format); $copyObj->setDbLength($this->length); $copyObj->setDbAlbumTitle($this->album_title); $copyObj->setDbGenre($this->genre); $copyObj->setDbComments($this->comments); $copyObj->setDbYear($this->year); $copyObj->setDbTrackNumber($this->track_number); $copyObj->setDbChannels($this->channels); $copyObj->setDbUrl($this->url); $copyObj->setDbBpm($this->bpm); $copyObj->setDbRating($this->rating); $copyObj->setDbEncodedBy($this->encoded_by); $copyObj->setDbDiscNumber($this->disc_number); $copyObj->setDbMood($this->mood); $copyObj->setDbLabel($this->label); $copyObj->setDbComposer($this->composer); $copyObj->setDbEncoder($this->encoder); $copyObj->setDbChecksum($this->checksum); $copyObj->setDbLyrics($this->lyrics); $copyObj->setDbOrchestra($this->orchestra); $copyObj->setDbConductor($this->conductor); $copyObj->setDbLyricist($this->lyricist); $copyObj->setDbOriginalLyricist($this->original_lyricist); $copyObj->setDbRadioStationName($this->radio_station_name); $copyObj->setDbInfoUrl($this->info_url); $copyObj->setDbArtistUrl($this->artist_url); $copyObj->setDbAudioSourceUrl($this->audio_source_url); $copyObj->setDbRadioStationUrl($this->radio_station_url); $copyObj->setDbBuyThisUrl($this->buy_this_url); $copyObj->setDbIsrcNumber($this->isrc_number); $copyObj->setDbCatalogNumber($this->catalog_number); $copyObj->setDbOriginalArtist($this->original_artist); $copyObj->setDbCopyright($this->copyright); $copyObj->setDbReportDatetime($this->report_datetime); $copyObj->setDbReportLocation($this->report_location); $copyObj->setDbReportOrganization($this->report_organization); $copyObj->setDbSubject($this->subject); $copyObj->setDbContributor($this->contributor); $copyObj->setDbLanguage($this->language); $copyObj->setDbFileExists($this->file_exists); $copyObj->setDbSoundcloudId($this->soundcloud_id); $copyObj->setDbSoundcloudErrorCode($this->soundcloud_error_code); $copyObj->setDbSoundcloudErrorMsg($this->soundcloud_error_msg); $copyObj->setDbSoundcloudLinkToFile($this->soundcloud_link_to_file); $copyObj->setDbSoundCloundUploadTime($this->soundcloud_upload_time); $copyObj->setDbReplayGain($this->replay_gain); $copyObj->setDbOwnerId($this->owner_id); $copyObj->setDbCuein($this->cuein); $copyObj->setDbCueout($this->cueout); $copyObj->setDbSilanCheck($this->silan_check); $copyObj->setDbHidden($this->hidden); $copyObj->setDbIsScheduled($this->is_scheduled); $copyObj->setDbIsPlaylist($this->is_playlist); if ($deepCopy) { // important: temporarily setNew(false) because this affects the behavior of // the getter/setter methods for fkey referrer objects. $copyObj->setNew(false); foreach ($this->getCcShowInstancess() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcShowInstances($relObj->copy($deepCopy)); } } foreach ($this->getCcPlaylistcontentss() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcPlaylistcontents($relObj->copy($deepCopy)); } } foreach ($this->getCcBlockcontentss() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcBlockcontents($relObj->copy($deepCopy)); } } foreach ($this->getCcSchedules() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcSchedule($relObj->copy($deepCopy)); } } foreach ($this->getCcPlayoutHistorys() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value }
/** * Sets contents of passed object to values from current object. * * If desired, this method can also make copies of all associated (fkey referrers) * objects. * * @param object $copyObj An object of CcShowInstances (or compatible) type. * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. * @throws PropelException */ public function copyInto($copyObj, $deepCopy = false) { $copyObj->setDbStarts($this->starts); $copyObj->setDbEnds($this->ends); $copyObj->setDbShowId($this->show_id); $copyObj->setDbRecord($this->record); $copyObj->setDbRebroadcast($this->rebroadcast); $copyObj->setDbOriginalShow($this->instance_id); $copyObj->setDbRecordedFile($this->file_id); $copyObj->setDbTimeFilled($this->time_filled); $copyObj->setDbCreated($this->created); $copyObj->setDbLastScheduled($this->last_scheduled); $copyObj->setDbModifiedInstance($this->modified_instance); if ($deepCopy) { // important: temporarily setNew(false) because this affects the behavior of // the getter/setter methods for fkey referrer objects. $copyObj->setNew(false); foreach ($this->getCcShowInstancessRelatedByDbId() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcShowInstancesRelatedByDbId($relObj->copy($deepCopy)); } } foreach ($this->getCcSchedules() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcSchedule($relObj->copy($deepCopy)); } } foreach ($this->getCcPlayoutHistorys() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCcPlayoutHistory($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setDbId(NULL); // this is a auto-increment column, so set to default value }