/**
  * 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 Proveedoritrade (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->setProveedoritradeNombre($this->getProveedoritradeNombre());
     $copyObj->setProveedoritradeNombrecontacto($this->getProveedoritradeNombrecontacto());
     $copyObj->setProveedoritradeTelefono($this->getProveedoritradeTelefono());
     $copyObj->setProveedoritradeCalle($this->getProveedoritradeCalle());
     $copyObj->setProveedoritradeNumero($this->getProveedoritradeNumero());
     $copyObj->setProveedoritradeInterior($this->getProveedoritradeInterior());
     $copyObj->setProveedoritradeColonia($this->getProveedoritradeColonia());
     $copyObj->setProveedoritradeCiudad($this->getProveedoritradeCiudad());
     $copyObj->setProveedoritradeEstado($this->getProveedoritradeEstado());
     $copyObj->setProveedoritradePais($this->getProveedoritradePais());
     $copyObj->setProveedoritradeEmail($this->getProveedoritradeEmail());
     $copyObj->setProveedoritradeRfc($this->getProveedoritradeRfc());
     $copyObj->setProveedoritradeClabe($this->getProveedoritradeClabe());
     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->getExpedientegastos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addExpedientegasto($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getProveedoritradearchivos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addProveedoritradearchivo($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getProveedoritradeservicios() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addProveedoritradeservicio($relObj->copy($deepCopy));
             }
         }
         //unflag object copy
         $this->startCopy = false;
     }
     // if ($deepCopy)
     if ($makeNew) {
         $copyObj->setNew(true);
         $copyObj->setIdproveedoritrade(NULL);
         // this is a auto-increment column, so set to default value
     }
 }
Beispiel #2
0
 /**
  * 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 Servicio (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->setServicioTipo($this->getServicioTipo());
     $copyObj->setServicioMedio($this->getServicioMedio());
     $copyObj->setServicioNombre($this->getServicioNombre());
     $copyObj->setServicioDescripcion($this->getServicioDescripcion());
     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->getExpedienteservicios() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addExpedienteservicio($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getProveedoritradeservicios() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addProveedoritradeservicio($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getServicioestados() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addServicioestado($relObj->copy($deepCopy));
             }
         }
         //unflag object copy
         $this->startCopy = false;
     }
     // if ($deepCopy)
     if ($makeNew) {
         $copyObj->setNew(true);
         $copyObj->setIdservicio(NULL);
         // this is a auto-increment column, so set to default value
     }
 }