propel/generated-classes/Base/User.php
/**
     * 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 \User (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
     */
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 \User (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.
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 \ User ( 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 .
public function copyInto($copyObj, $deepCopy = false, $makeNew = true)
    {
        $copyObj->setUUID($this->getUUID());
        $copyObj->setUserName($this->getUserName());
        $copyObj->setEmailAddress($this->getEmailAddress());
        $copyObj->setPassword($this->getPassword());
        $copyObj->setUserRole($this->getUserRole());
        $copyObj->setIsVisible($this->getIsVisible());
        $copyObj->setStatus($this->getStatus());
        $copyObj->setCreatedAt($this->getCreatedAt());
        $copyObj->setUpdatedAt($this->getUpdatedAt());
        if ($deepCopy) {
            $copyObj->setNew(false);
            foreach ($this->getProfiles() as $relObj) {
                if ($relObj !== $this) {  
                    $copyObj->addProfile($relObj->copy($deepCopy));
                }
            }
        } 
        if ($makeNew) {
            $copyObj->setNew(true);
            $copyObj->setID(NULL); 
        }
    }
public function copyInto ( $ copyObj , $ deepCopy = false , $ makeNew = true ) { $ copyObj -> setUUID ( $ this -> getUUID ( ) ) ; $ copyObj -> setUserName ( $ this -> getUserName ( ) ) ; $ copyObj -> setEmailAddress ( $ this -> getEmailAddress ( ) ) ; $ copyObj -> setPassword ( $ this -> getPassword ( ) ) ; $ copyObj -> setUserRole ( $ this -> getUserRole ( ) ) ; $ copyObj -> setIsVisible ( $ this -> getIsVisible ( ) ) ; $ copyObj -> setStatus ( $ this -> getStatus ( ) ) ; $ copyObj -> setCreatedAt ( $ this -> getCreatedAt ( ) ) ; $ copyObj -> setUpdatedAt ( $ this -> getUpdatedAt ( ) ) ; if ( $ deepCopy ) { $ copyObj -> setNew ( false ) ; foreach ( $ this -> getProfiles ( ) as $ relObj ) { if ( $ relObj !== $ this ) { $ copyObj -> addProfile ( $ relObj -> copy ( $ deepCopy ) ) ; } } } if ( $ makeNew ) { $ copyObj -> setNew ( true ) ; $ copyObj -> setID ( NULL ) ; } }
Sets contents of passed object to values from current object.
Sets contents of passed object to values from current object .
// important: temporarily setNew(false) because this affects the behavior of // the getter/setter methods for fkey referrer objects. // ensure that we don't try to copy a reference to ourselves // if ($deepCopy) // this is a auto-increment column, so set to default value