示例#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 MemberClass (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->setInitialFee($this->initial_fee);
     $copyObj->setRenewalFee($this->renewal_fee);
     $copyObj->setSubInitialFee($this->sub_initial_fee);
     $copyObj->setSubRenewalFee($this->sub_renewal_fee);
     $copyObj->setRenewalPeriod($this->renewal_period);
     $copyObj->setFlyMissions($this->fly_missions);
     $copyObj->setNewsletters($this->newsletters);
     $copyObj->setSubNewsletters($this->sub_newsletters);
     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->getMembers() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMember($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }
示例#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 Person (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->setTitle($this->title);
     $copyObj->setFirstName($this->first_name);
     $copyObj->setLastName($this->last_name);
     $copyObj->setAddress1($this->address1);
     $copyObj->setAddress2($this->address2);
     $copyObj->setCity($this->city);
     $copyObj->setCounty($this->county);
     $copyObj->setState($this->state);
     $copyObj->setCountry($this->country);
     $copyObj->setZipcode($this->zipcode);
     $copyObj->setDayPhone($this->day_phone);
     $copyObj->setDayComment($this->day_comment);
     $copyObj->setEveningPhone($this->evening_phone);
     $copyObj->setEveningComment($this->evening_comment);
     $copyObj->setMobilePhone($this->mobile_phone);
     $copyObj->setMobileComment($this->mobile_comment);
     $copyObj->setPagerPhone($this->pager_phone);
     $copyObj->setPagerComment($this->pager_comment);
     $copyObj->setOtherPhone($this->other_phone);
     $copyObj->setOtherComment($this->other_comment);
     $copyObj->setFaxPhone1($this->fax_phone1);
     $copyObj->setFaxComment1($this->fax_comment1);
     $copyObj->setAutoFax($this->auto_fax);
     $copyObj->setFaxPhone2($this->fax_phone2);
     $copyObj->setFaxComment2($this->fax_comment2);
     $copyObj->setEmail($this->email);
     $copyObj->setEmailTextOnly($this->email_text_only);
     $copyObj->setEmailBlocked($this->email_blocked);
     $copyObj->setUsername($this->username);
     $copyObj->setPassword($this->password);
     $copyObj->setComment($this->comment);
     $copyObj->setWfPolicyAgreed($this->wf_policy_agreed);
     $copyObj->setWfPolicyAgreedDate($this->wf_policy_agreed_date);
     $copyObj->setPagerEmail($this->pager_email);
     $copyObj->setBlockMailings($this->block_mailings);
     $copyObj->setNewsletter($this->newsletter);
     $copyObj->setGender($this->gender);
     $copyObj->setDeceased($this->deceased);
     $copyObj->setDeceasedComment($this->deceased_comment);
     $copyObj->setSecondaryEmail($this->secondary_email);
     $copyObj->setDeceasedDate($this->deceased_date);
     $copyObj->setMiddleName($this->middle_name);
     $copyObj->setSuffix($this->suffix);
     $copyObj->setNickname($this->nickname);
     $copyObj->setVeteran($this->veteran);
     $copyObj->setCreatedAt($this->created_at);
     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->getBoardMembers() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addBoardMember($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getCompanions() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCompanion($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getContacts() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addContact($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getDonors() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addDonor($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEmailListPersons() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEmailListPerson($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEmailQueues() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEmailQueue($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEmailTemplates() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEmailTemplate($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMembers() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMember($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPassengers() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPassenger($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPasswordRequests() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPasswordRequest($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPersonRoles() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPersonRole($relObj->copy($deepCopy));
             }
         }
         $relObj = $this->getPersonalNote();
         if ($relObj) {
             $copyObj->setPersonalNote($relObj->copy($deepCopy));
         }
         foreach ($this->getRequesters() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addRequester($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getWingLeaders() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addWingLeader($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }
示例#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 Wing (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->setNewsletterAbbreviation($this->newsletter_abbreviation);
     $copyObj->setDisplayName($this->display_name);
     $copyObj->setState($this->state);
     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->getAirports() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addAirport($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEmailLists() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEmailList($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getEventWingss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addEventWings($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMembers() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMember($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMemberWingStatss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMemberWingStats($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissionTypeWingStatss() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissionTypeWingStats($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }