示例#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 Airport (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->setIdent($this->ident);
     $copyObj->setName($this->name);
     $copyObj->setCity($this->city);
     $copyObj->setState($this->state);
     $copyObj->setLatitude($this->latitude);
     $copyObj->setLongitude($this->longitude);
     $copyObj->setRunwayLength($this->runway_length);
     $copyObj->setWingId($this->wing_id);
     $copyObj->setGmtOffset($this->gmt_offset);
     $copyObj->setDstOffset($this->dst_offset);
     $copyObj->setZipcode($this->zipcode);
     $copyObj->setClosed($this->closed);
     $copyObj->setFaaSiteNumber($this->faa_site_number);
     $copyObj->setAtct($this->atct);
     $copyObj->setIsPrivate($this->is_private);
     $copyObj->setNonCommercialLandingFee($this->non_commercial_landing_fee);
     $copyObj->setElevation($this->elevation);
     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->getCamps() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCamp($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getFbos() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addFbo($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissionLegsRelatedByFromAirportId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissionLegRelatedByFromAirportId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissionLegsRelatedByToAirportId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissionLegRelatedByToAirportId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getPilots() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addPilot($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 Agency (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->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->setPhone($this->phone);
     $copyObj->setComment($this->comment);
     $copyObj->setFaxPhone($this->fax_phone);
     $copyObj->setFaxComment($this->fax_comment);
     $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->getCamps() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCamp($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissionsRelatedByAgencyId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissionRelatedByAgencyId($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissionsRelatedByOtherAgencyId() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissionRelatedByOtherAgencyId($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));
             }
         }
     }
     // 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 Fbo (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->setAirportId($this->airport_id);
     $copyObj->setName($this->name);
     $copyObj->setVoicePhone($this->voice_phone);
     $copyObj->setFaxPhone($this->fax_phone);
     $copyObj->setDiscountAmount($this->discount_amount);
     $copyObj->setFuelDiscount($this->fuel_discount);
     $copyObj->setDefaultFbo($this->default_fbo);
     $copyObj->setAddress($this->address);
     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->getCamps() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addCamp($relObj->copy($deepCopy));
             }
         }
         foreach ($this->getMissionLegs() as $relObj) {
             if ($relObj !== $this) {
                 // ensure that we don't try to copy a reference to ourselves
                 $copyObj->addMissionLeg($relObj->copy($deepCopy));
             }
         }
     }
     // if ($deepCopy)
     $copyObj->setNew(true);
     $copyObj->setId(NULL);
     // this is a auto-increment column, so set to default value
 }