Example #1
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 Sites (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->setNom($this->nom);
     $copyObj->setActiu($this->actiu);
     $copyObj->setPoble($this->poble);
     $copyObj->setLogourl($this->logourl);
     $copyObj->setWeburl($this->weburl);
     $copyObj->setTelefon($this->telefon);
     $copyObj->setEmail($this->email);
     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->getUsuarisMenuss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisMenus($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisSitess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisSites($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setSiteId(NULL);
     // this is a auto-increment column, so set to default value
 }
Example #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 Usuaris (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->setNivellsIdnivells($this->nivells_idnivells);
     $copyObj->setDni($this->dni);
     $copyObj->setPasswd($this->passwd);
     $copyObj->setNom($this->nom);
     $copyObj->setCog1($this->cog1);
     $copyObj->setCog2($this->cog2);
     $copyObj->setEmail($this->email);
     $copyObj->setAdreca($this->adreca);
     $copyObj->setCodipostal($this->codipostal);
     $copyObj->setPoblacio($this->poblacio);
     $copyObj->setPoblaciotext($this->poblaciotext);
     $copyObj->setTelefon($this->telefon);
     $copyObj->setMobil($this->mobil);
     $copyObj->setEntitat($this->entitat);
     $copyObj->setHabilitat($this->habilitat);
     $copyObj->setActualitzacio($this->actualitzacio);
     $copyObj->setSiteId($this->site_id);
     $copyObj->setActiu($this->actiu);
     $copyObj->setFacebookId($this->facebook_id);
     $copyObj->setDataNaixement($this->data_naixement);
     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->getAppDocumentsPermisoss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addAppDocumentsPermisos($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getAppDocumentsPermisosDirs() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addAppDocumentsPermisosDir($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getFacturess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addFactures($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getIncidenciessRelatedByQuiinforma() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addIncidenciesRelatedByQuiinforma($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getIncidenciessRelatedByQuiresol() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addIncidenciesRelatedByQuiresol($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getLogs() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLog($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMatriculess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMatricules($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissatgess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissatges($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPersonalsRelatedByIdusuari() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPersonalRelatedByIdusuari($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPersonalsRelatedByUsuariupdateid() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPersonalRelatedByUsuariupdateid($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getReservaespaiss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addReservaespais($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getTasquessRelatedByQuimana() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addTasquesRelatedByQuimana($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getTasquessRelatedByQuifa() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addTasquesRelatedByQuifa($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisAppss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisApps($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisMenuss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisMenus($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisSitess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisSites($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisllistess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisllistes($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setUsuariid(NULL);
     // this is a auto-increment column, so set to default value
 }
Example #3
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 Nivells (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->setNom($this->nom);
     $copyObj->setSiteId($this->site_id);
     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->getAppDocumentsPermisoss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addAppDocumentsPermisos($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getAppDocumentsPermisosDirs() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addAppDocumentsPermisosDir($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuariss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuaris($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisAppss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisApps($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisMenuss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisMenus($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsuarisSitess() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisSites($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setIdnivells(NULL);
     // this is a auto-increment column, so set to default value
 }
Example #4
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 GestioMenus (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->setTitol($this->titol);
     $copyObj->setUrl($this->url);
     $copyObj->setCategoria($this->categoria);
     $copyObj->setOrdre($this->ordre);
     $copyObj->setActiu($this->actiu);
     $copyObj->setTipus($this->tipus);
     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->getUsuarisMenuss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUsuarisMenus($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setMenuId(NULL);
     // this is a auto-increment column, so set to default value
 }