/** * 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 Usuario (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->setIdIdioma($this->id_idioma); $copyObj->setUsuario($this->usuario); $copyObj->setClave($this->clave); $copyObj->setNombre($this->nombre); $copyObj->setApellido1($this->apellido1); $copyObj->setApellido2($this->apellido2); $copyObj->setDni($this->dni); $copyObj->setDomicilio($this->domicilio); $copyObj->setPoblacion($this->poblacion); $copyObj->setCp($this->cp); $copyObj->setIdProvincia($this->id_provincia); $copyObj->setPais($this->pais); $copyObj->setMovil($this->movil); $copyObj->setTelefono($this->telefono); $copyObj->setFax($this->fax); $copyObj->setUltimaVisita($this->ultima_visita); $copyObj->setEmail($this->email); $copyObj->setPublicKey($this->public_key); $copyObj->setEsExterno($this->es_externo); $copyObj->setAlertaEmail($this->alerta_email); $copyObj->setCreatedAt($this->created_at); $copyObj->setUpdatedAt($this->updated_at); $copyObj->setFechaBorrado($this->fecha_borrado); 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->getUsuarioGrupos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addUsuarioGrupo($relObj->copy($deepCopy)); } } foreach ($this->getAlcances() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addAlcance($relObj->copy($deepCopy)); } } foreach ($this->getSesions() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addSesion($relObj->copy($deepCopy)); } } foreach ($this->getMensajes() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addMensaje($relObj->copy($deepCopy)); } } foreach ($this->getMensajeDestinos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addMensajeDestino($relObj->copy($deepCopy)); } } foreach ($this->getEmpresas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addEmpresa($relObj->copy($deepCopy)); } } foreach ($this->getTablas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTabla($relObj->copy($deepCopy)); } } foreach ($this->getFormulariosRelatedByIdUsuario() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addFormularioRelatedByIdUsuario($relObj->copy($deepCopy)); } } foreach ($this->getFormulariosRelatedByIdUsuarioCreador() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addFormularioRelatedByIdUsuarioCreador($relObj->copy($deepCopy)); } } foreach ($this->getTareas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTarea($relObj->copy($deepCopy)); } } foreach ($this->getHistoricoDocumentos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addHistoricoDocumento($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setIdUsuario(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 Empresa (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->setIdProvincia($this->id_provincia); $copyObj->setIdUsuario($this->id_usuario); $copyObj->setNombre($this->nombre); $copyObj->setIdActividad($this->id_actividad); $copyObj->setTelefono($this->telefono); $copyObj->setFax($this->fax); $copyObj->setEmail($this->email); $copyObj->setDomicilio($this->domicilio); $copyObj->setPoblacion($this->poblacion); $copyObj->setCodigoPostal($this->codigo_postal); $copyObj->setCif($this->cif); $copyObj->setLogoMin($this->logo_min); $copyObj->setLogoMed($this->logo_med); $copyObj->setLogoMax($this->logo_max); $copyObj->setIdVtiger($this->id_vtiger); $copyObj->setSmtpServer($this->smtp_server); $copyObj->setSmtpUser($this->smtp_user); $copyObj->setSmtpPassword($this->smtp_password); $copyObj->setSmtpPort($this->smtp_port); $copyObj->setSenderAddress($this->sender_address); $copyObj->setSenderName($this->sender_name); $copyObj->setColor1($this->color1); $copyObj->setColor2($this->color2); $copyObj->setColor3($this->color3); $copyObj->setColor4($this->color4); $copyObj->setColorLetra1($this->color_letra1); $copyObj->setColorLetra2($this->color_letra2); $copyObj->setColorLetra3($this->color_letra3); $copyObj->setColorLetra4($this->color_letra4); $copyObj->setCreatedAt($this->created_at); $copyObj->setUpdatedAt($this->updated_at); $copyObj->setBorrado($this->borrado); 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->getAlcances() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addAlcance($relObj->copy($deepCopy)); } } foreach ($this->getTablas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTabla($relObj->copy($deepCopy)); } } foreach ($this->getCampos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addCampo($relObj->copy($deepCopy)); } } foreach ($this->getTareas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTarea($relObj->copy($deepCopy)); } } foreach ($this->getDocumentos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addDocumento($relObj->copy($deepCopy)); } } foreach ($this->getHistoricoDocumentos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addHistoricoDocumento($relObj->copy($deepCopy)); } } foreach ($this->getEncargados() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addEncargado($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setIdEmpresa(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 Parametro (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->setTipoparametro($this->tipoparametro); $copyObj->setNombre($this->nombre); $copyObj->setOrden($this->orden); $copyObj->setNumero($this->numero); $copyObj->setNumero2($this->numero2); $copyObj->setCadena($this->cadena); $copyObj->setCadena1($this->cadena1); $copyObj->setOtroobjeto($this->otroobjeto); $copyObj->setSiNo($this->si_no); $copyObj->setFecha($this->fecha); $copyObj->setCreatedAt($this->created_at); $copyObj->setUpdatedAt($this->updated_at); $copyObj->setFechaborrado($this->fechaborrado); $copyObj->setNombrefichero($this->nombrefichero); $copyObj->setTipo($this->tipo); $copyObj->setFichero($this->fichero); $copyObj->setTamano($this->tamano); 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->getTablas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTabla($relObj->copy($deepCopy)); } } foreach ($this->getTareas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTarea($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setIdParametro(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 Formulario (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->setIdTabla($this->id_tabla); $copyObj->setIdUsuarioCreador($this->id_usuario_creador); $copyObj->setIdUsuario($this->id_usuario); $copyObj->setFecha($this->fecha); $copyObj->setCreatedAt($this->created_at); $copyObj->setUpdatedAt($this->updated_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->getItems() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addItem($relObj->copy($deepCopy)); } } foreach ($this->getNotificacioness() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addNotificaciones($relObj->copy($deepCopy)); } } foreach ($this->getTareas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTarea($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setIdFormulario(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 Campo (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->setIdEmpresa($this->id_empresa); $copyObj->setEsGeneral($this->es_general); $copyObj->setEsNombre($this->es_nombre); $copyObj->setNombre($this->nombre); $copyObj->setDescripcion($this->descripcion); $copyObj->setTipo($this->tipo); $copyObj->setMismaFila($this->misma_fila); $copyObj->setEnLista($this->en_lista); $copyObj->setDesplegable($this->desplegable); $copyObj->setSeleccionMultiple($this->seleccion_multiple); $copyObj->setTipoItems($this->tipo_items); $copyObj->setUnidadRangos($this->unidad_rangos); $copyObj->setTipoPeriodo($this->tipo_periodo); $copyObj->setValorTabla($this->valor_tabla); $copyObj->setMostrarEnPadre($this->mostrar_en_padre); $copyObj->setValorObjeto($this->valor_objeto); $copyObj->setDefecto($this->defecto); $copyObj->setObligatorio($this->obligatorio); $copyObj->setEsCodAgencia($this->es_cod_agencia); $copyObj->setTamano($this->tamano); $copyObj->setOrden($this->orden); $copyObj->setEsInconsistente($this->es_inconsistente); $copyObj->setBorrado($this->borrado); 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->getRelCampoTablas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addRelCampoTabla($relObj->copy($deepCopy)); } } foreach ($this->getItemBases() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addItemBase($relObj->copy($deepCopy)); } } foreach ($this->getTareas() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addTarea($relObj->copy($deepCopy)); } } } // if ($deepCopy) $copyObj->setNew(true); $copyObj->setIdCampo(NULL); // this is a auto-increment column, so set to default value }