/** * 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 UserSc (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->setEmail($this->email); $copyObj->setProfile($this->profile); $copyObj->setPassword($this->password); $copyObj->setCreatedAt($this->created_at); $copyObj->setFlag($this->flag); $copyObj->setTokenSession($this->token_session); 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->getTreeScsRelatedByUserId() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTreeScRelatedByUserId($relObj->copy($deepCopy)); } } foreach ($this->getTreeScsRelatedByResponsableId() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTreeScRelatedByResponsableId($relObj->copy($deepCopy)); } } foreach ($this->getTreeUsers() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTreeUser($relObj->copy($deepCopy)); } } foreach ($this->getIndicatorsScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addIndicatorsSc($relObj->copy($deepCopy)); } } foreach ($this->getGrupoTrabajoScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addGrupoTrabajoSc($relObj->copy($deepCopy)); } } foreach ($this->getDetalleGrupoTrabajoScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addDetalleGrupoTrabajoSc($relObj->copy($deepCopy)); } } foreach ($this->getSolicitudGrupoTrabajoScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addSolicitudGrupoTrabajoSc($relObj->copy($deepCopy)); } } foreach ($this->getAsignacionScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addAsignacionSc($relObj->copy($deepCopy)); } } foreach ($this->getDataIndicadoress() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addDataIndicadores($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(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 GrupoTrabajoSc (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->setName($this->name); $copyObj->setOwnerId($this->owner_id); $copyObj->setFlag($this->flag); $copyObj->setCreateAt($this->create_at); $copyObj->setUpdateAt($this->update_at); 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->getTreeScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTreeSc($relObj->copy($deepCopy)); } } foreach ($this->getDetalleGrupoTrabajoScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addDetalleGrupoTrabajoSc($relObj->copy($deepCopy)); } } foreach ($this->getSolicitudGrupoTrabajoScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addSolicitudGrupoTrabajoSc($relObj->copy($deepCopy)); } } foreach ($this->getAsignacionScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addAsignacionSc($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(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 TreeSc (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->setName($this->name); $copyObj->setDescripcion($this->descripcion); $copyObj->setUserId($this->user_id); $copyObj->setGrupoTrabajoId($this->grupo_trabajo_id); $copyObj->setPeriodoId($this->periodo_id); $copyObj->setResponsableId($this->responsable_id); $copyObj->setEmailResponsable($this->email_responsable); $copyObj->setValorMinimo($this->valor_minimo); $copyObj->setValorDeseado($this->valor_deseado); $copyObj->setConfigureFlag($this->configure_flag); $copyObj->setFlag($this->flag); $copyObj->setCreateAt($this->create_at); $copyObj->setUpdateAt($this->update_at); $copyObj->setConfigureDesign($this->configure_design); $copyObj->setProduccion($this->produccion); 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->getTreeUsers() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTreeUser($relObj->copy($deepCopy)); } } foreach ($this->getIndicatorsScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addIndicatorsSc($relObj->copy($deepCopy)); } } foreach ($this->getAsignacionScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addAsignacionSc($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(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 IndicatorsSc (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->setTitulo($this->titulo); $copyObj->setDescripcion($this->descripcion); $copyObj->setValorMinimo($this->valor_minimo); $copyObj->setValorDeseado($this->valor_deseado); $copyObj->setValorOptimo($this->valor_optimo); $copyObj->setResponsableId($this->responsable_id); $copyObj->setTreeId($this->tree_id); $copyObj->setPreviousId($this->previous_id); $copyObj->setParents($this->parents); $copyObj->setIndicadoresHijosConfigure($this->indicadores_hijos_configure); $copyObj->setUltimoNodo($this->ultimo_nodo); $copyObj->setValorActualEntregado($this->valor_actual_entregado); $copyObj->setConectoresConfigure($this->conectores_configure); $copyObj->setOwnerIndicadores($this->owner_indicadores); $copyObj->setEmailResponsable($this->email_responsable); $copyObj->setFlag($this->flag); 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->getAsignacionScs() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addAsignacionSc($relObj->copy($deepCopy)); } } foreach ($this->getDataIndicadoress() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addDataIndicadores($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setId(NULL); // this is a auto-increment column, so set to default value }