/**
  * Populates the object using an array.
  *
  * This is particularly useful when populating an object from one of the
  * request arrays (e.g. $_POST).  This method goes through the column
  * names, checking to see whether a matching key exists in populated
  * array. If so the setByName() method is called for that column.
  *
  * You can specify the key type of the array by additionally passing one
  * of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME,
  * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM.
  * The default key type is the column's phpname (e.g. 'AuthorId')
  *
  * @param      array  $arr     An array to populate the object from.
  * @param      string $keyType The type of keys the array uses.
  * @return     void
  */
 public function fromArray($arr, $keyType = BasePeer::TYPE_PHPNAME)
 {
     $keys = RpMissionItineraryPeer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setNow($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setMissionid($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setExternalid($arr[$keys[2]]);
     }
     if (array_key_exists($keys[3], $arr)) {
         $this->setMissiontypeid($arr[$keys[3]]);
     }
     if (array_key_exists($keys[4], $arr)) {
         $this->setMissiondate($arr[$keys[4]]);
     }
     if (array_key_exists($keys[5], $arr)) {
         $this->setApptdate($arr[$keys[5]]);
     }
     if (array_key_exists($keys[6], $arr)) {
         $this->setFlighttime($arr[$keys[6]]);
     }
     if (array_key_exists($keys[7], $arr)) {
         $this->setReleasingphysician($arr[$keys[7]]);
     }
     if (array_key_exists($keys[8], $arr)) {
         $this->setReleasingphone($arr[$keys[8]]);
     }
     if (array_key_exists($keys[9], $arr)) {
         $this->setReleasingfax($arr[$keys[9]]);
     }
     if (array_key_exists($keys[10], $arr)) {
         $this->setReleasingfaxcomment($arr[$keys[10]]);
     }
     if (array_key_exists($keys[11], $arr)) {
         $this->setReleasingemail($arr[$keys[11]]);
     }
     if (array_key_exists($keys[12], $arr)) {
         $this->setLodging($arr[$keys[12]]);
     }
     if (array_key_exists($keys[13], $arr)) {
         $this->setLodgingphone($arr[$keys[13]]);
     }
     if (array_key_exists($keys[14], $arr)) {
         $this->setLodgingPhoneComment($arr[$keys[14]]);
     }
     if (array_key_exists($keys[15], $arr)) {
         $this->setFacilityname($arr[$keys[15]]);
     }
     if (array_key_exists($keys[16], $arr)) {
         $this->setFacilityphone($arr[$keys[16]]);
     }
     if (array_key_exists($keys[17], $arr)) {
         $this->setFacilityphonecomment($arr[$keys[17]]);
     }
     if (array_key_exists($keys[18], $arr)) {
         $this->setPublicconsiderations($arr[$keys[18]]);
     }
     if (array_key_exists($keys[19], $arr)) {
         $this->setPrivateconsiderations($arr[$keys[19]]);
     }
     if (array_key_exists($keys[20], $arr)) {
         $this->setIllness($arr[$keys[20]]);
     }
     if (array_key_exists($keys[21], $arr)) {
         $this->setGroundtransportationcomment($arr[$keys[21]]);
     }
     if (array_key_exists($keys[22], $arr)) {
         $this->setTreatingphysician($arr[$keys[22]]);
     }
     if (array_key_exists($keys[23], $arr)) {
         $this->setTreatingphone($arr[$keys[23]]);
     }
     if (array_key_exists($keys[24], $arr)) {
         $this->setTreatingfax($arr[$keys[24]]);
     }
     if (array_key_exists($keys[25], $arr)) {
         $this->setTreatingfaxcomment($arr[$keys[25]]);
     }
     if (array_key_exists($keys[26], $arr)) {
         $this->setTreatingemail($arr[$keys[26]]);
     }
     if (array_key_exists($keys[27], $arr)) {
         $this->setLanguagespoken($arr[$keys[27]]);
     }
     if (array_key_exists($keys[28], $arr)) {
         $this->setBestcontactmethod($arr[$keys[28]]);
     }
     if (array_key_exists($keys[29], $arr)) {
         $this->setEmergencycontactname($arr[$keys[29]]);
     }
     if (array_key_exists($keys[30], $arr)) {
         $this->setEmergencycontactprimaryphone($arr[$keys[30]]);
     }
     if (array_key_exists($keys[31], $arr)) {
         $this->setEmergencycontactsecondaryphone($arr[$keys[31]]);
     }
     if (array_key_exists($keys[32], $arr)) {
         $this->setEmergencycontactprimarycomment($arr[$keys[32]]);
     }
     if (array_key_exists($keys[33], $arr)) {
         $this->setEmergencycontactsecondarycomment($arr[$keys[33]]);
     }
     if (array_key_exists($keys[34], $arr)) {
         $this->setPassfirstname($arr[$keys[34]]);
     }
     if (array_key_exists($keys[35], $arr)) {
         $this->setPasslastname($arr[$keys[35]]);
     }
     if (array_key_exists($keys[36], $arr)) {
         $this->setPasscity($arr[$keys[36]]);
     }
     if (array_key_exists($keys[37], $arr)) {
         $this->setPassstate($arr[$keys[37]]);
     }
     if (array_key_exists($keys[38], $arr)) {
         $this->setPasszipcode($arr[$keys[38]]);
     }
     if (array_key_exists($keys[39], $arr)) {
         $this->setPassage($arr[$keys[39]]);
     }
     if (array_key_exists($keys[40], $arr)) {
         $this->setPassweight($arr[$keys[40]]);
     }
     if (array_key_exists($keys[41], $arr)) {
         $this->setPassdayphone($arr[$keys[41]]);
     }
     if (array_key_exists($keys[42], $arr)) {
         $this->setPassdaycomment($arr[$keys[42]]);
     }
     if (array_key_exists($keys[43], $arr)) {
         $this->setPassevephone($arr[$keys[43]]);
     }
     if (array_key_exists($keys[44], $arr)) {
         $this->setPassevecomment($arr[$keys[44]]);
     }
     if (array_key_exists($keys[45], $arr)) {
         $this->setPasspagerphone($arr[$keys[45]]);
     }
     if (array_key_exists($keys[46], $arr)) {
         $this->setPasspagercomment($arr[$keys[46]]);
     }
     if (array_key_exists($keys[47], $arr)) {
         $this->setPassmobilephone($arr[$keys[47]]);
     }
     if (array_key_exists($keys[48], $arr)) {
         $this->setPassmobilecomment($arr[$keys[48]]);
     }
     if (array_key_exists($keys[49], $arr)) {
         $this->setPassotherphone($arr[$keys[49]]);
     }
     if (array_key_exists($keys[50], $arr)) {
         $this->setPassothercomment($arr[$keys[50]]);
     }
     if (array_key_exists($keys[51], $arr)) {
         $this->setPassfaxphone1($arr[$keys[51]]);
     }
     if (array_key_exists($keys[52], $arr)) {
         $this->setPassfax1comment($arr[$keys[52]]);
     }
     if (array_key_exists($keys[53], $arr)) {
         $this->setPassemail($arr[$keys[53]]);
     }
     if (array_key_exists($keys[54], $arr)) {
         $this->setPassaddressone($arr[$keys[54]]);
     }
     if (array_key_exists($keys[55], $arr)) {
         $this->setPassaddresstwo($arr[$keys[55]]);
     }
     if (array_key_exists($keys[56], $arr)) {
         $this->setComment($arr[$keys[56]]);
     }
     if (array_key_exists($keys[57], $arr)) {
         $this->setId($arr[$keys[57]]);
     }
     if (array_key_exists($keys[58], $arr)) {
         $this->setLegnumber($arr[$keys[58]]);
     }
     if (array_key_exists($keys[59], $arr)) {
         $this->setPassonboard($arr[$keys[59]]);
     }
     if (array_key_exists($keys[60], $arr)) {
         $this->setBaggageweight($arr[$keys[60]]);
     }
     if (array_key_exists($keys[61], $arr)) {
         $this->setBaggagedesc($arr[$keys[61]]);
     }
     if (array_key_exists($keys[62], $arr)) {
         $this->setPubliccnote($arr[$keys[62]]);
     }
     if (array_key_exists($keys[63], $arr)) {
         $this->setPrivatecnote($arr[$keys[63]]);
     }
     if (array_key_exists($keys[64], $arr)) {
         $this->setCopilotwanted($arr[$keys[64]]);
     }
     if (array_key_exists($keys[65], $arr)) {
         $this->setFromairportident($arr[$keys[65]]);
     }
     if (array_key_exists($keys[66], $arr)) {
         $this->setFromairportname($arr[$keys[66]]);
     }
     if (array_key_exists($keys[67], $arr)) {
         $this->setFromairportcity($arr[$keys[67]]);
     }
     if (array_key_exists($keys[68], $arr)) {
         $this->setFromairportstate($arr[$keys[68]]);
     }
     if (array_key_exists($keys[69], $arr)) {
         $this->setFromairportgmtoffset($arr[$keys[69]]);
     }
     if (array_key_exists($keys[70], $arr)) {
         $this->setFromairportdstoffset($arr[$keys[70]]);
     }
     if (array_key_exists($keys[71], $arr)) {
         $this->setToairportident($arr[$keys[71]]);
     }
     if (array_key_exists($keys[72], $arr)) {
         $this->setToairportname($arr[$keys[72]]);
     }
     if (array_key_exists($keys[73], $arr)) {
         $this->setToairportcity($arr[$keys[73]]);
     }
     if (array_key_exists($keys[74], $arr)) {
         $this->setToairportstate($arr[$keys[74]]);
     }
     if (array_key_exists($keys[75], $arr)) {
         $this->setToairportgmtoffset($arr[$keys[75]]);
     }
     if (array_key_exists($keys[76], $arr)) {
         $this->setToairportdstoffset($arr[$keys[76]]);
     }
     if (array_key_exists($keys[77], $arr)) {
         $this->setPilotfirstname($arr[$keys[77]]);
     }
     if (array_key_exists($keys[78], $arr)) {
         $this->setPilotlastname($arr[$keys[78]]);
     }
     if (array_key_exists($keys[79], $arr)) {
         $this->setPilotdayphone($arr[$keys[79]]);
     }
     if (array_key_exists($keys[80], $arr)) {
         $this->setPilotdaycomment($arr[$keys[80]]);
     }
     if (array_key_exists($keys[81], $arr)) {
         $this->setPilotevephone($arr[$keys[81]]);
     }
     if (array_key_exists($keys[82], $arr)) {
         $this->setPilotevecomment($arr[$keys[82]]);
     }
     if (array_key_exists($keys[83], $arr)) {
         $this->setPilotfaxphone($arr[$keys[83]]);
     }
     if (array_key_exists($keys[84], $arr)) {
         $this->setPilotfaxcomment($arr[$keys[84]]);
     }
     if (array_key_exists($keys[85], $arr)) {
         $this->setPilotmobilephone($arr[$keys[85]]);
     }
     if (array_key_exists($keys[86], $arr)) {
         $this->setPilotmobilecomment($arr[$keys[86]]);
     }
     if (array_key_exists($keys[87], $arr)) {
         $this->setPilotpagerphone($arr[$keys[87]]);
     }
     if (array_key_exists($keys[88], $arr)) {
         $this->setPilotpagercomment($arr[$keys[88]]);
     }
     if (array_key_exists($keys[89], $arr)) {
         $this->setPilototherphone($arr[$keys[89]]);
     }
     if (array_key_exists($keys[90], $arr)) {
         $this->setPilotothercomment($arr[$keys[90]]);
     }
     if (array_key_exists($keys[91], $arr)) {
         $this->setPilotemail($arr[$keys[91]]);
     }
     if (array_key_exists($keys[92], $arr)) {
         $this->setCopilotfirstname($arr[$keys[92]]);
     }
     if (array_key_exists($keys[93], $arr)) {
         $this->setCopilotlastname($arr[$keys[93]]);
     }
     if (array_key_exists($keys[94], $arr)) {
         $this->setCopilotdayphone($arr[$keys[94]]);
     }
     if (array_key_exists($keys[95], $arr)) {
         $this->setCopilotdaycomment($arr[$keys[95]]);
     }
     if (array_key_exists($keys[96], $arr)) {
         $this->setCopilotevephone($arr[$keys[96]]);
     }
     if (array_key_exists($keys[97], $arr)) {
         $this->setCopilotevecomment($arr[$keys[97]]);
     }
     if (array_key_exists($keys[98], $arr)) {
         $this->setCopilotmobilephone($arr[$keys[98]]);
     }
     if (array_key_exists($keys[99], $arr)) {
         $this->setCopilotmobilecomment($arr[$keys[99]]);
     }
     if (array_key_exists($keys[100], $arr)) {
         $this->setCopilotpagerphone($arr[$keys[100]]);
     }
     if (array_key_exists($keys[101], $arr)) {
         $this->setCopilotpagercomment($arr[$keys[101]]);
     }
     if (array_key_exists($keys[102], $arr)) {
         $this->setCopilototherphone($arr[$keys[102]]);
     }
     if (array_key_exists($keys[103], $arr)) {
         $this->setCopilotothercomment($arr[$keys[103]]);
     }
     if (array_key_exists($keys[104], $arr)) {
         $this->setCopilotfaxphone($arr[$keys[104]]);
     }
     if (array_key_exists($keys[105], $arr)) {
         $this->setCopilotfaxcomment($arr[$keys[105]]);
     }
     if (array_key_exists($keys[106], $arr)) {
         $this->setCopilotemail($arr[$keys[106]]);
     }
     if (array_key_exists($keys[107], $arr)) {
         $this->setBupilotfirstname($arr[$keys[107]]);
     }
     if (array_key_exists($keys[108], $arr)) {
         $this->setBupilotlastname($arr[$keys[108]]);
     }
     if (array_key_exists($keys[109], $arr)) {
         $this->setBupilotdayphone($arr[$keys[109]]);
     }
     if (array_key_exists($keys[110], $arr)) {
         $this->setBupilotdaycomment($arr[$keys[110]]);
     }
     if (array_key_exists($keys[111], $arr)) {
         $this->setBupilotevephone($arr[$keys[111]]);
     }
     if (array_key_exists($keys[112], $arr)) {
         $this->setBupilotevecomment($arr[$keys[112]]);
     }
     if (array_key_exists($keys[113], $arr)) {
         $this->setBupilotmobilephone($arr[$keys[113]]);
     }
     if (array_key_exists($keys[114], $arr)) {
         $this->setBupilotmobilecomment($arr[$keys[114]]);
     }
     if (array_key_exists($keys[115], $arr)) {
         $this->setBupilotpagerphone($arr[$keys[115]]);
     }
     if (array_key_exists($keys[116], $arr)) {
         $this->setBupilotpagercomment($arr[$keys[116]]);
     }
     if (array_key_exists($keys[117], $arr)) {
         $this->setBupilototherphone($arr[$keys[117]]);
     }
     if (array_key_exists($keys[118], $arr)) {
         $this->setBupilotothercomment($arr[$keys[118]]);
     }
     if (array_key_exists($keys[119], $arr)) {
         $this->setBupilotfaxphone($arr[$keys[119]]);
     }
     if (array_key_exists($keys[120], $arr)) {
         $this->setBupilotfaxcomment($arr[$keys[120]]);
     }
     if (array_key_exists($keys[121], $arr)) {
         $this->setBupilotemail($arr[$keys[121]]);
     }
     if (array_key_exists($keys[122], $arr)) {
         $this->setCoordfirstname($arr[$keys[122]]);
     }
     if (array_key_exists($keys[123], $arr)) {
         $this->setCoordlastname($arr[$keys[123]]);
     }
     if (array_key_exists($keys[124], $arr)) {
         $this->setCoorddayphone($arr[$keys[124]]);
     }
     if (array_key_exists($keys[125], $arr)) {
         $this->setCoorddaycomment($arr[$keys[125]]);
     }
     if (array_key_exists($keys[126], $arr)) {
         $this->setCoordevephone($arr[$keys[126]]);
     }
     if (array_key_exists($keys[127], $arr)) {
         $this->setCoordevecomment($arr[$keys[127]]);
     }
     if (array_key_exists($keys[128], $arr)) {
         $this->setCoordmobilephone($arr[$keys[128]]);
     }
     if (array_key_exists($keys[129], $arr)) {
         $this->setCoordmobilecomment($arr[$keys[129]]);
     }
     if (array_key_exists($keys[130], $arr)) {
         $this->setCoordpagerphone($arr[$keys[130]]);
     }
     if (array_key_exists($keys[131], $arr)) {
         $this->setCoordpagercomment($arr[$keys[131]]);
     }
     if (array_key_exists($keys[132], $arr)) {
         $this->setCoordotherphone($arr[$keys[132]]);
     }
     if (array_key_exists($keys[133], $arr)) {
         $this->setCoordothercomment($arr[$keys[133]]);
     }
     if (array_key_exists($keys[134], $arr)) {
         $this->setCoordfaxphone($arr[$keys[134]]);
     }
     if (array_key_exists($keys[135], $arr)) {
         $this->setCoordfaxcomment($arr[$keys[135]]);
     }
     if (array_key_exists($keys[136], $arr)) {
         $this->setCoordemail($arr[$keys[136]]);
     }
     if (array_key_exists($keys[137], $arr)) {
         $this->setRequestername($arr[$keys[137]]);
     }
     if (array_key_exists($keys[138], $arr)) {
         $this->setReqfirstname($arr[$keys[138]]);
     }
     if (array_key_exists($keys[139], $arr)) {
         $this->setReqlastname($arr[$keys[139]]);
     }
     if (array_key_exists($keys[140], $arr)) {
         $this->setReqdayphone($arr[$keys[140]]);
     }
     if (array_key_exists($keys[141], $arr)) {
         $this->setReqevephone($arr[$keys[141]]);
     }
     if (array_key_exists($keys[142], $arr)) {
         $this->setReqmobilephone($arr[$keys[142]]);
     }
     if (array_key_exists($keys[143], $arr)) {
         $this->setReqpagerphone($arr[$keys[143]]);
     }
     if (array_key_exists($keys[144], $arr)) {
         $this->setReqotherphone($arr[$keys[144]]);
     }
     if (array_key_exists($keys[145], $arr)) {
         $this->setReqfaxphone($arr[$keys[145]]);
     }
     if (array_key_exists($keys[146], $arr)) {
         $this->setReqdaycomment($arr[$keys[146]]);
     }
     if (array_key_exists($keys[147], $arr)) {
         $this->setReqevecomment($arr[$keys[147]]);
     }
     if (array_key_exists($keys[148], $arr)) {
         $this->setReqpagercomment($arr[$keys[148]]);
     }
     if (array_key_exists($keys[149], $arr)) {
         $this->setReqmobilecomment($arr[$keys[149]]);
     }
     if (array_key_exists($keys[150], $arr)) {
         $this->setReqfaxcomment($arr[$keys[150]]);
     }
     if (array_key_exists($keys[151], $arr)) {
         $this->setReqothercomment($arr[$keys[151]]);
     }
     if (array_key_exists($keys[152], $arr)) {
         $this->setReqemail($arr[$keys[152]]);
     }
     if (array_key_exists($keys[153], $arr)) {
         $this->setCompanionname($arr[$keys[153]]);
     }
     if (array_key_exists($keys[154], $arr)) {
         $this->setCompanionrelationship($arr[$keys[154]]);
     }
     if (array_key_exists($keys[155], $arr)) {
         $this->setCompaniondob($arr[$keys[155]]);
     }
     if (array_key_exists($keys[156], $arr)) {
         $this->setCompanionage($arr[$keys[156]]);
     }
     if (array_key_exists($keys[157], $arr)) {
         $this->setCompanionweight($arr[$keys[157]]);
     }
     if (array_key_exists($keys[158], $arr)) {
         $this->setCompanionphone($arr[$keys[158]]);
     }
     if (array_key_exists($keys[159], $arr)) {
         $this->setCompanionphonecomment($arr[$keys[159]]);
     }
     if (array_key_exists($keys[160], $arr)) {
         $this->setPilotname($arr[$keys[160]]);
     }
     if (array_key_exists($keys[161], $arr)) {
         $this->setAfadayphone($arr[$keys[161]]);
     }
     if (array_key_exists($keys[162], $arr)) {
         $this->setAfanightphone($arr[$keys[162]]);
     }
     if (array_key_exists($keys[163], $arr)) {
         $this->setAfafaxphone($arr[$keys[163]]);
     }
     if (array_key_exists($keys[164], $arr)) {
         $this->setAfapilotmobilephone($arr[$keys[164]]);
     }
     if (array_key_exists($keys[165], $arr)) {
         $this->setAfaaircraft($arr[$keys[165]]);
     }
     if (array_key_exists($keys[166], $arr)) {
         $this->setAfannumber($arr[$keys[166]]);
     }
     if (array_key_exists($keys[167], $arr)) {
         $this->setAircraftcolor($arr[$keys[167]]);
     }
     if (array_key_exists($keys[168], $arr)) {
         $this->setEtd($arr[$keys[168]]);
     }
     if (array_key_exists($keys[169], $arr)) {
         $this->setEta($arr[$keys[169]]);
     }
     if (array_key_exists($keys[170], $arr)) {
         $this->setAfaorgname($arr[$keys[170]]);
     }
     if (array_key_exists($keys[171], $arr)) {
         $this->setAfaorgphone($arr[$keys[171]]);
     }
     if (array_key_exists($keys[172], $arr)) {
         $this->setFboname($arr[$keys[172]]);
     }
     if (array_key_exists($keys[173], $arr)) {
         $this->setFbophone($arr[$keys[173]]);
     }
     if (array_key_exists($keys[174], $arr)) {
         $this->setFbofax($arr[$keys[174]]);
     }
     if (array_key_exists($keys[175], $arr)) {
         $this->setFbofueldiscount($arr[$keys[175]]);
     }
     if (array_key_exists($keys[176], $arr)) {
         $this->setFboairportident($arr[$keys[176]]);
     }
     if (array_key_exists($keys[177], $arr)) {
         $this->setAircraftseats($arr[$keys[177]]);
     }
     if (array_key_exists($keys[178], $arr)) {
         $this->setAircraftnnumber($arr[$keys[178]]);
     }
     if (array_key_exists($keys[179], $arr)) {
         $this->setAircraftknownice($arr[$keys[179]]);
     }
     if (array_key_exists($keys[180], $arr)) {
         $this->setAircraftmake($arr[$keys[180]]);
     }
     if (array_key_exists($keys[181], $arr)) {
         $this->setAircraftmodel($arr[$keys[181]]);
     }
     if (array_key_exists($keys[182], $arr)) {
         $this->setCampname($arr[$keys[182]]);
     }
     if (array_key_exists($keys[183], $arr)) {
         $this->setCampphone($arr[$keys[183]]);
     }
     if (array_key_exists($keys[184], $arr)) {
         $this->setCampphonecomment($arr[$keys[184]]);
     }
     if (array_key_exists($keys[185], $arr)) {
         $this->setCamplodgingname($arr[$keys[185]]);
     }
     if (array_key_exists($keys[186], $arr)) {
         $this->setCamplodgingphone($arr[$keys[186]]);
     }
     if (array_key_exists($keys[187], $arr)) {
         $this->setCamplodgingphonecomment($arr[$keys[187]]);
     }
     if (array_key_exists($keys[188], $arr)) {
         $this->setCampcomment($arr[$keys[188]]);
     }
     if (array_key_exists($keys[189], $arr)) {
         $this->setFlightinformation($arr[$keys[189]]);
     }
 }
 /**
  * Retrieve multiple objects by pkey.
  *
  * @param      array $pks List of primary keys
  * @param      PropelPDO $con the connection to use
  * @throws     PropelException Any exceptions caught during processing will be
  *		 rethrown wrapped into a PropelException.
  */
 public static function retrieveByPKs($pks, PropelPDO $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(RpMissionItineraryPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(RpMissionItineraryPeer::DATABASE_NAME);
         $criteria->add(RpMissionItineraryPeer::ID, $pks, Criteria::IN);
         $objs = RpMissionItineraryPeer::doSelect($criteria, $con);
     }
     return $objs;
 }