/** * 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 Schema (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->setAgentId($this->agent_id); $copyObj->setCreatedAt($this->created_at); $copyObj->setUpdatedAt($this->updated_at); $copyObj->setDeletedAt($this->deleted_at); $copyObj->setCreatedUserId($this->created_user_id); $copyObj->setUpdatedUserId($this->updated_user_id); $copyObj->setChildUpdatedAt($this->child_updated_at); $copyObj->setChildUpdatedUserId($this->child_updated_user_id); $copyObj->setName($this->name); $copyObj->setNote($this->note); $copyObj->setUri($this->uri); $copyObj->setUrl($this->url); $copyObj->setBaseDomain($this->base_domain); $copyObj->setToken($this->token); $copyObj->setCommunity($this->community); $copyObj->setLastUriId($this->last_uri_id); $copyObj->setStatusId($this->status_id); $copyObj->setLanguage($this->language); $copyObj->setProfileId($this->profile_id); $copyObj->setNsType($this->ns_type); $copyObj->setPrefixes($this->prefixes); $copyObj->setLanguages($this->languages); $copyObj->setRepo($this->repo); 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->getDiscusss() as $relObj) { $copyObj->addDiscuss($relObj->copy($deepCopy)); } foreach ($this->getFileImportHistorys() as $relObj) { $copyObj->addFileImportHistory($relObj->copy($deepCopy)); } foreach ($this->getRdfNamespaces() as $relObj) { $copyObj->addRdfNamespace($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertys() as $relObj) { $copyObj->addSchemaProperty($relObj->copy($deepCopy)); } foreach ($this->getSchemaPropertyElementHistorys() as $relObj) { $copyObj->addSchemaPropertyElementHistory($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 Batch (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->setRunTime($this->run_time); $copyObj->setRunDescription($this->run_description); $copyObj->setObjectType($this->object_type); $copyObj->setObjectId($this->object_id); $copyObj->setEventTime($this->event_time); $copyObj->setEventType($this->event_type); $copyObj->setEventDescription($this->event_description); $copyObj->setRegistryUri($this->registry_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->getFileImportHistorys() as $relObj) { $copyObj->addFileImportHistory($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 }