/** * 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 SkosProperty (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->setParentId($this->parent_id); $copyObj->setInverseId($this->inverse_id); $copyObj->setName($this->name); $copyObj->setUri($this->uri); $copyObj->setObjectType($this->object_type); $copyObj->setDisplayOrder($this->display_order); $copyObj->setPicklistOrder($this->picklist_order); $copyObj->setLabel($this->label); $copyObj->setDefinition($this->definition); $copyObj->setComment($this->comment); $copyObj->setExamples($this->examples); $copyObj->setIsRequired($this->is_required); $copyObj->setIsReciprocal($this->is_reciprocal); $copyObj->setIsSingleton($this->is_singleton); $copyObj->setIsScheme($this->is_scheme); $copyObj->setIsInPicklist($this->is_in_picklist); 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->getConceptPropertyHistorys() as $relObj) { $copyObj->addConceptPropertyHistory($relObj->copy($deepCopy)); } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(NULL); // this is a pkey 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 ConceptProperty (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->setCreatedAt($this->created_at); $copyObj->setUpdatedAt($this->updated_at); $copyObj->setDeletedAt($this->deleted_at); $copyObj->setLastUpdated($this->last_updated); $copyObj->setCreatedUserId($this->created_user_id); $copyObj->setUpdatedUserId($this->updated_user_id); $copyObj->setConceptId($this->concept_id); $copyObj->setPrimaryPrefLabel($this->primary_pref_label); $copyObj->setSkosPropertyId($this->skos_property_id); $copyObj->setObject($this->object); $copyObj->setSchemeId($this->scheme_id); $copyObj->setRelatedConceptId($this->related_concept_id); $copyObj->setLanguage($this->language); $copyObj->setStatusId($this->status_id); $copyObj->setIsConceptProperty($this->is_concept_property); $copyObj->setProfilePropertyId($this->profile_property_id); $copyObj->setIsGenerated($this->is_generated); 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->getConcepts() as $relObj) { $copyObj->addConcept($relObj->copy($deepCopy)); } foreach ($this->getConceptPropertyHistorys() as $relObj) { $copyObj->addConceptPropertyHistory($relObj->copy($deepCopy)); } foreach ($this->getDiscusss() as $relObj) { $copyObj->addDiscuss($relObj->copy($deepCopy)); } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(NULL); // this is a pkey 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 User (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->setCreatedAt($this->created_at); $copyObj->setLastUpdated($this->last_updated); $copyObj->setDeletedAt($this->deleted_at); $copyObj->setNickname($this->nickname); $copyObj->setSalutation($this->salutation); $copyObj->setFirstName($this->first_name); $copyObj->setLastName($this->last_name); $copyObj->setEmail($this->email); $copyObj->setSha1Password($this->sha1_password); $copyObj->setSalt($this->salt); $copyObj->setWantToBeModerator($this->want_to_be_moderator); $copyObj->setIsModerator($this->is_moderator); $copyObj->setIsAdministrator($this->is_administrator); $copyObj->setDeletions($this->deletions); $copyObj->setPassword($this->password); $copyObj->setCulture($this->culture); 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->getProfilesRelatedByCreatedBy() as $relObj) { $copyObj->addProfileRelatedByCreatedBy($relObj->copy($deepCopy)); } foreach ($this->getProfilesRelatedByUpdatedBy() as $relObj) { $copyObj->addProfileRelatedByUpdatedBy($relObj->copy($deepCopy)); } foreach ($this->getProfilesRelatedByDeletedBy() as $relObj) { $copyObj->addProfileRelatedByDeletedBy($relObj->copy($deepCopy)); } foreach ($this->getProfilesRelatedByChildUpdatedBy() as $relObj) { $copyObj->addProfileRelatedByChildUpdatedBy($relObj->copy($deepCopy)); } foreach ($this->getProfilePropertysRelatedByCreatedBy() as $relObj) { $copyObj->addProfilePropertyRelatedByCreatedBy($relObj->copy($deepCopy)); } foreach ($this->getProfilePropertysRelatedByUpdatedBy() as $relObj) { $copyObj->addProfilePropertyRelatedByUpdatedBy($relObj->copy($deepCopy)); } foreach ($this->getProfilePropertysRelatedByDeletedBy() as $relObj) { $copyObj->addProfilePropertyRelatedByDeletedBy($relObj->copy($deepCopy)); } foreach ($this->getAgentHasUsers() as $relObj) { $copyObj->addAgentHasUser($relObj->copy($deepCopy)); } foreach ($this->getCollectionsRelatedByCreatedUserId() as $relObj) { $copyObj->addCollectionRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getCollectionsRelatedByUpdatedUserId() as $relObj) { $copyObj->addCollectionRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getConceptsRelatedByCreatedUserId() as $relObj) { $copyObj->addConceptRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getConceptsRelatedByUpdatedUserId() as $relObj) { $copyObj->addConceptRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getConceptPropertysRelatedByCreatedUserId() as $relObj) { $copyObj->addConceptPropertyRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getConceptPropertysRelatedByUpdatedUserId() as $relObj) { $copyObj->addConceptPropertyRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getConceptPropertyHistorys() as $relObj) { $copyObj->addConceptPropertyHistory($relObj->copy($deepCopy)); } foreach ($this->getDiscusssRelatedByCreatedUserId() as $relObj) { $copyObj->addDiscussRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getDiscusssRelatedByDeletedUserId() as $relObj) { $copyObj->addDiscussRelatedByDeletedUserId($relObj->copy($deepCopy)); } foreach ($this->getFileImportHistorys() as $relObj) { $copyObj->addFileImportHistory($relObj->copy($deepCopy)); } foreach ($this->getSchemasRelatedByCreatedUserId() as $relObj) { $copyObj->addSchemaRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getSchemasRelatedByUpdatedUserId() as $relObj) { $copyObj->addSchemaRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertysRelatedByCreatedUserId() as $relObj) { $copyObj->addSchemaPropertyRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertysRelatedByUpdatedUserId() as $relObj) { $copyObj->addSchemaPropertyRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElementsRelatedByCreatedUserId() as $relObj) { $copyObj->addSchemaPropertyElementRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElementsRelatedByUpdatedUserId() as $relObj) { $copyObj->addSchemaPropertyElementRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElementHistorys() as $relObj) { $copyObj->addSchemaPropertyElementHistory($relObj->copy($deepCopy)); } foreach ($this->getVocabularysRelatedByCreatedUserId() as $relObj) { $copyObj->addVocabularyRelatedByCreatedUserId($relObj->copy($deepCopy)); } foreach ($this->getVocabularysRelatedByUpdatedUserId() as $relObj) { $copyObj->addVocabularyRelatedByUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getVocabularysRelatedByChildUpdatedUserId() as $relObj) { $copyObj->addVocabularyRelatedByChildUpdatedUserId($relObj->copy($deepCopy)); } foreach ($this->getVocabularyHasUsers() as $relObj) { $copyObj->addVocabularyHasUser($relObj->copy($deepCopy)); } foreach ($this->getVocabularyHasVersions() as $relObj) { $copyObj->addVocabularyHasVersion($relObj->copy($deepCopy)); } foreach ($this->getSchemaHasUsers() as $relObj) { $copyObj->addSchemaHasUser($relObj->copy($deepCopy)); } foreach ($this->getSchemaHasVersions() as $relObj) { $copyObj->addSchemaHasVersion($relObj->copy($deepCopy)); } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(NULL); // this is a pkey 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 FileImportHistory (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->setCreatedAt($this->created_at); $copyObj->setMap($this->map); $copyObj->setUserId($this->user_id); $copyObj->setVocabularyId($this->vocabulary_id); $copyObj->setSchemaId($this->schema_id); $copyObj->setFileName($this->file_name); $copyObj->setSourceFileName($this->source_file_name); $copyObj->setFileType($this->file_type); $copyObj->setBatchId($this->batch_id); $copyObj->setResults($this->results); $copyObj->setTotalProcessedCount($this->total_processed_count); $copyObj->setErrorCount($this->error_count); $copyObj->setSuccessCount($this->success_count); 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->getConceptPropertyHistorys() as $relObj) { $copyObj->addConceptPropertyHistory($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElementHistorys() as $relObj) { $copyObj->addSchemaPropertyElementHistory($relObj->copy($deepCopy)); } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(NULL); // this is a pkey 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 Status (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->setDisplayOrder($this->display_order); $copyObj->setDisplayName($this->display_name); $copyObj->setUri($this->uri); 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->getProfiles() as $relObj) { $copyObj->addProfile($relObj->copy($deepCopy)); } foreach ($this->getProfilePropertys() as $relObj) { $copyObj->addProfileProperty($relObj->copy($deepCopy)); } foreach ($this->getCollections() as $relObj) { $copyObj->addCollection($relObj->copy($deepCopy)); } foreach ($this->getConcepts() as $relObj) { $copyObj->addConcept($relObj->copy($deepCopy)); } foreach ($this->getConceptPropertys() as $relObj) { $copyObj->addConceptProperty($relObj->copy($deepCopy)); } foreach ($this->getConceptPropertyHistorys() as $relObj) { $copyObj->addConceptPropertyHistory($relObj->copy($deepCopy)); } foreach ($this->getSchemas() as $relObj) { $copyObj->addSchema($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertys() as $relObj) { $copyObj->addSchemaProperty($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElements() as $relObj) { $copyObj->addSchemaPropertyElement($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElementHistorys() as $relObj) { $copyObj->addSchemaPropertyElementHistory($relObj->copy($deepCopy)); } foreach ($this->getVocabularys() as $relObj) { $copyObj->addVocabulary($relObj->copy($deepCopy)); } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(NULL); // this is a pkey column, so set to default value }