/** * 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 Cliente (or compatible) type. * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. * @throws PropelException */ public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { $copyObj->setClienteEmail($this->getClienteEmail()); $copyObj->setClientePassword($this->getClientePassword()); $copyObj->setClienteRazonsocial($this->getClienteRazonsocial()); $copyObj->setClienteRfc($this->getClienteRfc()); $copyObj->setClienteCalle($this->getClienteCalle()); $copyObj->setClienteNumero($this->getClienteNumero()); $copyObj->setClienteInterior($this->getClienteInterior()); $copyObj->setClienteColonia($this->getClienteColonia()); $copyObj->setClienteCodigopostal($this->getClienteCodigopostal()); $copyObj->setClienteCiudad($this->getClienteCiudad()); $copyObj->setClienteEstado($this->getClienteEstado()); $copyObj->setClientePais($this->getClientePais()); $copyObj->setClienteTelefono($this->getClienteTelefono()); $copyObj->setClienteCelular($this->getClienteCelular()); $copyObj->setClienteNombrecontacto($this->getClienteNombrecontacto()); $copyObj->setClienteCumpleanios($this->getClienteCumpleanios()); $copyObj->setClienteCallefiscal($this->getClienteCallefiscal()); $copyObj->setClienteNumerofiscal($this->getClienteNumerofiscal()); $copyObj->setClienteInteriorfiscal($this->getClienteInteriorfiscal()); $copyObj->setClienteColoniafiscal($this->getClienteColoniafiscal()); $copyObj->setClienteCodigopostalfiscal($this->getClienteCodigopostalfiscal()); $copyObj->setClienteCiudadfiscal($this->getClienteCiudadfiscal()); $copyObj->setClienteEstadofiscal($this->getClienteEstadofiscal()); $copyObj->setClientePaisfiscal($this->getClientePaisfiscal()); $copyObj->setClientePadronimportador($this->getClientePadronimportador()); $copyObj->setClienteEncargadoconferido($this->getClienteEncargadoconferido()); $copyObj->setClienteR1($this->getClienteR1()); $copyObj->setClienteR2($this->getClienteR2()); $copyObj->setClienteIdentificacionrepresentantelegal($this->getClienteIdentificacionrepresentantelegal()); $copyObj->setClienteRfcrepresentantelegal($this->getClienteRfcrepresentantelegal()); $copyObj->setClienteActaconstitutiva($this->getClienteActaconstitutiva()); $copyObj->setClientePodernotarial($this->getClientePodernotarial()); $copyObj->setClienteCartaencomienda($this->getClienteCartaencomienda()); $copyObj->setClienteComprobantedomicilio($this->getClienteComprobantedomicilio()); $copyObj->setClienteComprobanteclabe($this->getClienteComprobanteclabe()); $copyObj->setClienteClabe($this->getClienteClabe()); $copyObj->setClienteArchivoszip($this->getClienteArchivoszip()); $copyObj->setIdempleadocomercial($this->getIdempleadocomercial()); $copyObj->setIdempleadooperaciones($this->getIdempleadooperaciones()); $copyObj->setClienteUltimologin($this->getClienteUltimologin()); $copyObj->setClienteFotografiasdomicilio($this->getClienteFotografiasdomicilio()); if ($deepCopy && !$this->startCopy) { // important: temporarily setNew(false) because this affects the behavior of // the getter/setter methods for fkey referrer objects. $copyObj->setNew(false); // store object hash to prevent cycle $this->startCopy = true; foreach ($this->getClientearchivos() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addClientearchivo($relObj->copy($deepCopy)); } } foreach ($this->getExpedientes() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addExpediente($relObj->copy($deepCopy)); } } foreach ($this->getProveedorclientes() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addProveedorcliente($relObj->copy($deepCopy)); } } //unflag object copy $this->startCopy = false; } // if ($deepCopy) if ($makeNew) { $copyObj->setNew(true); $copyObj->setIdcliente(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 Proveedorcliente (or compatible) type. * @param boolean $deepCopy Whether to also copy all rows that refer (by fkey) to the current row. * @param boolean $makeNew Whether to reset autoincrement PKs and make the object new. * @throws PropelException */ public function copyInto($copyObj, $deepCopy = false, $makeNew = true) { $copyObj->setIdcliente($this->getIdcliente()); $copyObj->setProveedorclienteNombre($this->getProveedorclienteNombre()); $copyObj->setProveedorclienteTaxid($this->getProveedorclienteTaxid()); $copyObj->setProveedorclienteNombrecontacto($this->getProveedorclienteNombrecontacto()); $copyObj->setProveedorclienteTelefonocontacto($this->getProveedorclienteTelefonocontacto()); $copyObj->setProveedorclienteEmailcontacto($this->getProveedorclienteEmailcontacto()); $copyObj->setProveedorclienteCalle($this->getProveedorclienteCalle()); $copyObj->setProveedorclienteNumero($this->getProveedorclienteNumero()); $copyObj->setProveedorclienteInterior($this->getProveedorclienteInterior()); $copyObj->setProveedorclienteColonia($this->getProveedorclienteColonia()); $copyObj->setProveedorclienteCiudad($this->getProveedorclienteCiudad()); $copyObj->setProveedorclienteEstado($this->getProveedorclienteEstado()); $copyObj->setProveedorclientePais($this->getProveedorclientePais()); $copyObj->setProveedorclienteTipo($this->getProveedorclienteTipo()); if ($deepCopy && !$this->startCopy) { // important: temporarily setNew(false) because this affects the behavior of // the getter/setter methods for fkey referrer objects. $copyObj->setNew(false); // store object hash to prevent cycle $this->startCopy = true; foreach ($this->getExpedientes() as $relObj) { if ($relObj !== $this) { // ensure that we don't try to copy a reference to ourselves $copyObj->addExpediente($relObj->copy($deepCopy)); } } //unflag object copy $this->startCopy = false; } // if ($deepCopy) if ($makeNew) { $copyObj->setNew(true); $copyObj->setIdproveedorcliente(NULL); // this is a auto-increment column, so set to default value } }