/**
  * 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 LeasingAppointments (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->setAppointmentLeadsId($this->getAppointmentLeadsId());
     $copyObj->setUnitId($this->getUnitId());
     $copyObj->setPreferredDate($this->getPreferredDate());
     $copyObj->setPreferredTime($this->getPreferredTime());
     $copyObj->setLeasePeriod($this->getLeasePeriod());
     $copyObj->setTargetMoveIn($this->getTargetMoveIn());
     $copyObj->setConfirmationCode($this->getConfirmationCode());
     $copyObj->setStartDate($this->getStartDate());
     $copyObj->setEndDate($this->getEndDate());
     $copyObj->setFirstHeard($this->getFirstHeard());
     $copyObj->setNotes($this->getNotes());
     $copyObj->setDateAdded($this->getDateAdded());
     $copyObj->setStatus($this->getStatus());
     $copyObj->setPrevStatus($this->getPrevStatus());
     $copyObj->setProcessing($this->getProcessing());
     $copyObj->setProcessedBy($this->getProcessedBy());
     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->getLeasingAppointmentAssignments() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLeasingAppointmentAssignment($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
     }
 }
 /**
  * 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 LeasingSpecialist (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->setName($this->getName());
     $copyObj->setEmail($this->getEmail());
     $copyObj->setMobile($this->getMobile());
     $copyObj->setLeasingUnit($this->getLeasingUnit());
     $copyObj->setStatus($this->getStatus());
     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->getLeasingAppointmentAssignments() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLeasingAppointmentAssignment($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getLeasingBookingAssignments() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLeasingBookingAssignment($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getLeasingSpecialistSchedules() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addLeasingSpecialistSchedule($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
     }
 }