Ejemplo n.º 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 sfGuardUser (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->setUsername($this->username);
     $copyObj->setAlgorithm($this->algorithm);
     $copyObj->setSalt($this->salt);
     $copyObj->setPassword($this->password);
     $copyObj->setCreatedAt($this->created_at);
     $copyObj->setLastLogin($this->last_login);
     $copyObj->setIsActive($this->is_active);
     $copyObj->setIsSuperAdmin($this->is_super_admin);
     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->getsfGuardUserPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserPermission($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserGroups() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserGroup($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardRememberKeys() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardRememberKey($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEnlaces() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEnlace($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPropuestas() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPropuesta($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPoliticos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPolitico($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getSfGuardUserProfiles() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addSfGuardUserProfile($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEtiquetaPoliticos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEtiquetaPolitico($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEtiquetaPartidos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEtiquetaPartido($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEtiquetaPropuestas() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEtiquetaPropuesta($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getSfApplications() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addSfApplication($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getSfReviews() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addSfReview($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }
Ejemplo n.º 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 sfGuardPermission (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->setDescription($this->description);
     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->getsfGuardGroupPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardGroupPermission($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserPermission($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }
Ejemplo n.º 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 sfGuardUser (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->setUsername($this->username);
     $copyObj->setAlgorithm($this->algorithm);
     $copyObj->setSalt($this->salt);
     $copyObj->setPassword($this->password);
     $copyObj->setCreatedAt($this->created_at);
     $copyObj->setLastLogin($this->last_login);
     $copyObj->setIsActive($this->is_active);
     $copyObj->setIsSuperAdmin($this->is_super_admin);
     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->getAdss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addAds($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getLogssRelatedByQueryBy() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLogsRelatedByQueryBy($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getLogssRelatedByCheckBy() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLogsRelatedByCheckBy($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getReviews() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addReview($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getScores() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addScore($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getShops() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addShop($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUserMetas() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUserMeta($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserPermission($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserGroups() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserGroup($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardRememberKeys() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardRememberKey($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }
Ejemplo n.º 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 sfGuardUser (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->setUsername($this->getUsername());
     $copyObj->setAlgorithm($this->getAlgorithm());
     $copyObj->setSalt($this->getSalt());
     $copyObj->setPassword($this->getPassword());
     $copyObj->setCreatedAt($this->getCreatedAt());
     $copyObj->setLastLogin($this->getLastLogin());
     $copyObj->setIsActive($this->getIsActive());
     $copyObj->setIsSuperAdmin($this->getIsSuperAdmin());
     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->getBranchs() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addBranch($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getCommentsRelatedByUserId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCommentRelatedByUserId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getCommentsRelatedByCheckUserId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCommentRelatedByCheckUserId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getFiles() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addFile($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getProfiles() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addProfile($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getStatusActions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addStatusAction($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserPermission($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserGroups() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserGroup($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardRememberKeys() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardRememberKey($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     if ($makeNew) {
         $copyObj->setNew(true);
         $copyObj->setId(NULL);
         // this is a auto-increment column, so set to default value
     }
 }
Ejemplo n.º 5
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 sfGuardUser (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->setUsername($this->username);
     $copyObj->setAlgorithm($this->algorithm);
     $copyObj->setSalt($this->salt);
     $copyObj->setPassword($this->password);
     $copyObj->setCreatedAt($this->created_at);
     $copyObj->setLastLogin($this->last_login);
     $copyObj->setIsActive($this->is_active);
     $copyObj->setIsSuperAdmin($this->is_super_admin);
     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->getNotaPedidosRelatedByAdministraId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addNotaPedidoRelatedByAdministraId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getNotaPedidosRelatedBySolicitaId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addNotaPedidoRelatedBySolicitaId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getNotaPedidosRelatedByControlaId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addNotaPedidoRelatedByControlaId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getNotaPedidosRelatedByAutorizaId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addNotaPedidoRelatedByAutorizaId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getNotaPedidoEstados() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addNotaPedidoEstado($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEventos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEvento($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getCompraEstados() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCompraEstado($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getVentas() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addVenta($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getVentaEstados() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addVentaEstado($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserPermission($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserGroups() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserGroup($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardRememberKeys() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardRememberKey($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getRecepcionPedidosRelatedByRecibeId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addRecepcionPedidoRelatedByRecibeId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getRecepcionPedidosRelatedByControlaId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addRecepcionPedidoRelatedByControlaId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getRecepcionPedidosRelatedByAdministraId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addRecepcionPedidoRelatedByAdministraId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUserProfiles() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUserProfile($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }
Ejemplo n.º 6
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 sfGuardUser (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->setUsername($this->getUsername());
     $copyObj->setAlgorithm($this->getAlgorithm());
     $copyObj->setSalt($this->getSalt());
     $copyObj->setPassword($this->getPassword());
     $copyObj->setCreatedAt($this->getCreatedAt());
     $copyObj->setLastLogin($this->getLastLogin());
     $copyObj->setIsActive($this->getIsActive());
     $copyObj->setIsSuperAdmin($this->getIsSuperAdmin());
     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->getsfGuardUserPermissions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserPermission($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardUserGroups() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardUserGroup($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getsfGuardRememberKeys() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addsfGuardRememberKey($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getUsers() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addUser($relObj->copy($deepCopy));
             }
         }
         //unflag object copy
         $this->startCopy = false;
     }
     // if ($deepCopy)
     if ($makeNew) {
         $copyObj->setNew(true);
         $copyObj->setId(NULL);
         // this is a auto-increment column, so set to default value
     }
 }