/**
  * 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 = MissionRequestTempPeer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setId($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setRequestDate($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setRequestBy($arr[$keys[2]]);
     }
     if (array_key_exists($keys[3], $arr)) {
         $this->setRequestOnBehalf($arr[$keys[3]]);
     }
     if (array_key_exists($keys[4], $arr)) {
         $this->setApptDate($arr[$keys[4]]);
     }
     if (array_key_exists($keys[5], $arr)) {
         $this->setReturnDate($arr[$keys[5]]);
     }
     if (array_key_exists($keys[6], $arr)) {
         $this->setBaggageWeight($arr[$keys[6]]);
     }
     if (array_key_exists($keys[7], $arr)) {
         $this->setBaggageDesc($arr[$keys[7]]);
     }
     if (array_key_exists($keys[8], $arr)) {
         $this->setPassTitle($arr[$keys[8]]);
     }
     if (array_key_exists($keys[9], $arr)) {
         $this->setPassFirstName($arr[$keys[9]]);
     }
     if (array_key_exists($keys[10], $arr)) {
         $this->setPassLastName($arr[$keys[10]]);
     }
     if (array_key_exists($keys[11], $arr)) {
         $this->setPassAddress1($arr[$keys[11]]);
     }
     if (array_key_exists($keys[12], $arr)) {
         $this->setPassAddress2($arr[$keys[12]]);
     }
     if (array_key_exists($keys[13], $arr)) {
         $this->setPassCity($arr[$keys[13]]);
     }
     if (array_key_exists($keys[14], $arr)) {
         $this->setPassCounty($arr[$keys[14]]);
     }
     if (array_key_exists($keys[15], $arr)) {
         $this->setPassState($arr[$keys[15]]);
     }
     if (array_key_exists($keys[16], $arr)) {
         $this->setPassCountry($arr[$keys[16]]);
     }
     if (array_key_exists($keys[17], $arr)) {
         $this->setPassZipcode($arr[$keys[17]]);
     }
     if (array_key_exists($keys[18], $arr)) {
         $this->setPassDayPhone($arr[$keys[18]]);
     }
     if (array_key_exists($keys[19], $arr)) {
         $this->setPassDayComment($arr[$keys[19]]);
     }
     if (array_key_exists($keys[20], $arr)) {
         $this->setPassEvePhone($arr[$keys[20]]);
     }
     if (array_key_exists($keys[21], $arr)) {
         $this->setPassEveComment($arr[$keys[21]]);
     }
     if (array_key_exists($keys[22], $arr)) {
         $this->setPassMobilePhone($arr[$keys[22]]);
     }
     if (array_key_exists($keys[23], $arr)) {
         $this->setPassMobileComment($arr[$keys[23]]);
     }
     if (array_key_exists($keys[24], $arr)) {
         $this->setPassPagerPhone($arr[$keys[24]]);
     }
     if (array_key_exists($keys[25], $arr)) {
         $this->setPassPagerComment($arr[$keys[25]]);
     }
     if (array_key_exists($keys[26], $arr)) {
         $this->setPassOtherPhone($arr[$keys[26]]);
     }
     if (array_key_exists($keys[27], $arr)) {
         $this->setPassOtherComment($arr[$keys[27]]);
     }
     if (array_key_exists($keys[28], $arr)) {
         $this->setPassEmail($arr[$keys[28]]);
     }
     if (array_key_exists($keys[29], $arr)) {
         $this->setPassDateOfBirth($arr[$keys[29]]);
     }
     if (array_key_exists($keys[30], $arr)) {
         $this->setIllness($arr[$keys[30]]);
     }
     if (array_key_exists($keys[31], $arr)) {
         $this->setFinancial($arr[$keys[31]]);
     }
     if (array_key_exists($keys[32], $arr)) {
         $this->setPassWeight($arr[$keys[32]]);
     }
     if (array_key_exists($keys[33], $arr)) {
         $this->setReleasingPhysician($arr[$keys[33]]);
     }
     if (array_key_exists($keys[34], $arr)) {
         $this->setReleasePhone($arr[$keys[34]]);
     }
     if (array_key_exists($keys[35], $arr)) {
         $this->setReleasePhoneComment($arr[$keys[35]]);
     }
     if (array_key_exists($keys[36], $arr)) {
         $this->setReleaseFax($arr[$keys[36]]);
     }
     if (array_key_exists($keys[37], $arr)) {
         $this->setReleaseFaxComment($arr[$keys[37]]);
     }
     if (array_key_exists($keys[38], $arr)) {
         $this->setReleaseEmail($arr[$keys[38]]);
     }
     if (array_key_exists($keys[39], $arr)) {
         $this->setTreatingPhysician($arr[$keys[39]]);
     }
     if (array_key_exists($keys[40], $arr)) {
         $this->setTreatingPhone($arr[$keys[40]]);
     }
     if (array_key_exists($keys[41], $arr)) {
         $this->setTreatingPhoneComment($arr[$keys[41]]);
     }
     if (array_key_exists($keys[42], $arr)) {
         $this->setTreatingFax($arr[$keys[42]]);
     }
     if (array_key_exists($keys[43], $arr)) {
         $this->setTreatingFaxComment($arr[$keys[43]]);
     }
     if (array_key_exists($keys[44], $arr)) {
         $this->setReqTitle($arr[$keys[44]]);
     }
     if (array_key_exists($keys[45], $arr)) {
         $this->setReqFirstName($arr[$keys[45]]);
     }
     if (array_key_exists($keys[46], $arr)) {
         $this->setReqLastName($arr[$keys[46]]);
     }
     if (array_key_exists($keys[47], $arr)) {
         $this->setAgencyName($arr[$keys[47]]);
     }
     if (array_key_exists($keys[48], $arr)) {
         $this->setReqAddress1($arr[$keys[48]]);
     }
     if (array_key_exists($keys[49], $arr)) {
         $this->setReqAddress2($arr[$keys[49]]);
     }
     if (array_key_exists($keys[50], $arr)) {
         $this->setReqCity($arr[$keys[50]]);
     }
     if (array_key_exists($keys[51], $arr)) {
         $this->setReqCounty($arr[$keys[51]]);
     }
     if (array_key_exists($keys[52], $arr)) {
         $this->setReqState($arr[$keys[52]]);
     }
     if (array_key_exists($keys[53], $arr)) {
         $this->setReqCountry($arr[$keys[53]]);
     }
     if (array_key_exists($keys[54], $arr)) {
         $this->setReqZipcode($arr[$keys[54]]);
     }
     if (array_key_exists($keys[55], $arr)) {
         $this->setReqDayPhone($arr[$keys[55]]);
     }
     if (array_key_exists($keys[56], $arr)) {
         $this->setReqDayComment($arr[$keys[56]]);
     }
     if (array_key_exists($keys[57], $arr)) {
         $this->setReqEvePhone($arr[$keys[57]]);
     }
     if (array_key_exists($keys[58], $arr)) {
         $this->setReqEveComment($arr[$keys[58]]);
     }
     if (array_key_exists($keys[59], $arr)) {
         $this->setReqMobilePhone($arr[$keys[59]]);
     }
     if (array_key_exists($keys[60], $arr)) {
         $this->setReqMobileComment($arr[$keys[60]]);
     }
     if (array_key_exists($keys[61], $arr)) {
         $this->setReqPagerPhone($arr[$keys[61]]);
     }
     if (array_key_exists($keys[62], $arr)) {
         $this->setReqPagerComment($arr[$keys[62]]);
     }
     if (array_key_exists($keys[63], $arr)) {
         $this->setReqOtherPhone($arr[$keys[63]]);
     }
     if (array_key_exists($keys[64], $arr)) {
         $this->setReqOtherComment($arr[$keys[64]]);
     }
     if (array_key_exists($keys[65], $arr)) {
         $this->setReqEmail($arr[$keys[65]]);
     }
     if (array_key_exists($keys[66], $arr)) {
         $this->setOriginIdent($arr[$keys[66]]);
     }
     if (array_key_exists($keys[67], $arr)) {
         $this->setOriginId($arr[$keys[67]]);
     }
     if (array_key_exists($keys[68], $arr)) {
         $this->setOriginCity($arr[$keys[68]]);
     }
     if (array_key_exists($keys[69], $arr)) {
         $this->setOriginState($arr[$keys[69]]);
     }
     if (array_key_exists($keys[70], $arr)) {
         $this->setOriginZipcode($arr[$keys[70]]);
     }
     if (array_key_exists($keys[71], $arr)) {
         $this->setDestIdent($arr[$keys[71]]);
     }
     if (array_key_exists($keys[72], $arr)) {
         $this->setDestId($arr[$keys[72]]);
     }
     if (array_key_exists($keys[73], $arr)) {
         $this->setDestCity($arr[$keys[73]]);
     }
     if (array_key_exists($keys[74], $arr)) {
         $this->setDestState($arr[$keys[74]]);
     }
     if (array_key_exists($keys[75], $arr)) {
         $this->setDestZipcode($arr[$keys[75]]);
     }
     if (array_key_exists($keys[76], $arr)) {
         $this->setCom1Name($arr[$keys[76]]);
     }
     if (array_key_exists($keys[77], $arr)) {
         $this->setCom1Relationship($arr[$keys[77]]);
     }
     if (array_key_exists($keys[78], $arr)) {
         $this->setCom1DateOfBirth($arr[$keys[78]]);
     }
     if (array_key_exists($keys[79], $arr)) {
         $this->setCom1Weight($arr[$keys[79]]);
     }
     if (array_key_exists($keys[80], $arr)) {
         $this->setCom1Phone($arr[$keys[80]]);
     }
     if (array_key_exists($keys[81], $arr)) {
         $this->setCom1Comment($arr[$keys[81]]);
     }
     if (array_key_exists($keys[82], $arr)) {
         $this->setCom2Name($arr[$keys[82]]);
     }
     if (array_key_exists($keys[83], $arr)) {
         $this->setCom2Relationship($arr[$keys[83]]);
     }
     if (array_key_exists($keys[84], $arr)) {
         $this->setCom2DateOfBirth($arr[$keys[84]]);
     }
     if (array_key_exists($keys[85], $arr)) {
         $this->setCom2Weight($arr[$keys[85]]);
     }
     if (array_key_exists($keys[86], $arr)) {
         $this->setCom2Phone($arr[$keys[86]]);
     }
     if (array_key_exists($keys[87], $arr)) {
         $this->setCom2Comment($arr[$keys[87]]);
     }
     if (array_key_exists($keys[88], $arr)) {
         $this->setCom3Name($arr[$keys[88]]);
     }
     if (array_key_exists($keys[89], $arr)) {
         $this->setCom3Relationship($arr[$keys[89]]);
     }
     if (array_key_exists($keys[90], $arr)) {
         $this->setCom3DateOfBirth($arr[$keys[90]]);
     }
     if (array_key_exists($keys[91], $arr)) {
         $this->setCom3Weight($arr[$keys[91]]);
     }
     if (array_key_exists($keys[92], $arr)) {
         $this->setCom3Phone($arr[$keys[92]]);
     }
     if (array_key_exists($keys[93], $arr)) {
         $this->setCom3Comment($arr[$keys[93]]);
     }
     if (array_key_exists($keys[94], $arr)) {
         $this->setCom4Name($arr[$keys[94]]);
     }
     if (array_key_exists($keys[95], $arr)) {
         $this->setCom4Relationship($arr[$keys[95]]);
     }
     if (array_key_exists($keys[96], $arr)) {
         $this->setCom4DateOfBirth($arr[$keys[96]]);
     }
     if (array_key_exists($keys[97], $arr)) {
         $this->setCom4Weight($arr[$keys[97]]);
     }
     if (array_key_exists($keys[98], $arr)) {
         $this->setCom4Phone($arr[$keys[98]]);
     }
     if (array_key_exists($keys[99], $arr)) {
         $this->setCom4Comment($arr[$keys[99]]);
     }
     if (array_key_exists($keys[100], $arr)) {
         $this->setLodgingName($arr[$keys[100]]);
     }
     if (array_key_exists($keys[101], $arr)) {
         $this->setLodgingPhone($arr[$keys[101]]);
     }
     if (array_key_exists($keys[102], $arr)) {
         $this->setFacilityName($arr[$keys[102]]);
     }
     if (array_key_exists($keys[103], $arr)) {
         $this->setFacilityPhone($arr[$keys[103]]);
     }
     if (array_key_exists($keys[104], $arr)) {
         $this->setFacilityPhoneComment($arr[$keys[104]]);
     }
     if (array_key_exists($keys[105], $arr)) {
         $this->setReqLanguageSpoken($arr[$keys[105]]);
     }
     if (array_key_exists($keys[106], $arr)) {
         $this->setBestContact($arr[$keys[106]]);
     }
     if (array_key_exists($keys[107], $arr)) {
         $this->setEmergencyName($arr[$keys[107]]);
     }
     if (array_key_exists($keys[108], $arr)) {
         $this->setEmergencyPhone1($arr[$keys[108]]);
     }
     if (array_key_exists($keys[109], $arr)) {
         $this->setEmergencyPhone2($arr[$keys[109]]);
     }
     if (array_key_exists($keys[110], $arr)) {
         $this->setEmergencyPhone1Comment($arr[$keys[110]]);
     }
     if (array_key_exists($keys[111], $arr)) {
         $this->setEmergencyPhone2Comment($arr[$keys[111]]);
     }
     if (array_key_exists($keys[112], $arr)) {
         $this->setComment($arr[$keys[112]]);
     }
     if (array_key_exists($keys[113], $arr)) {
         $this->setProcessedDate($arr[$keys[113]]);
     }
     if (array_key_exists($keys[114], $arr)) {
         $this->setSessionId($arr[$keys[114]]);
     }
     if (array_key_exists($keys[115], $arr)) {
         $this->setIpAddress($arr[$keys[115]]);
     }
     if (array_key_exists($keys[116], $arr)) {
         $this->setPassFaxPhone1($arr[$keys[116]]);
     }
     if (array_key_exists($keys[117], $arr)) {
         $this->setPassFaxComment1($arr[$keys[117]]);
     }
     if (array_key_exists($keys[118], $arr)) {
         $this->setGuarFirstName($arr[$keys[118]]);
     }
     if (array_key_exists($keys[119], $arr)) {
         $this->setGuarLastName($arr[$keys[119]]);
     }
     if (array_key_exists($keys[120], $arr)) {
         $this->setGuarAddress1($arr[$keys[120]]);
     }
     if (array_key_exists($keys[121], $arr)) {
         $this->setGuarAddress2($arr[$keys[121]]);
     }
     if (array_key_exists($keys[122], $arr)) {
         $this->setGuarCity($arr[$keys[122]]);
     }
     if (array_key_exists($keys[123], $arr)) {
         $this->setGuarState($arr[$keys[123]]);
     }
     if (array_key_exists($keys[124], $arr)) {
         $this->setGuarZipcode($arr[$keys[124]]);
     }
     if (array_key_exists($keys[125], $arr)) {
         $this->setGuarDayPhone($arr[$keys[125]]);
     }
     if (array_key_exists($keys[126], $arr)) {
         $this->setGuarDayComment($arr[$keys[126]]);
     }
     if (array_key_exists($keys[127], $arr)) {
         $this->setGuarEvePhone($arr[$keys[127]]);
     }
     if (array_key_exists($keys[128], $arr)) {
         $this->setGuarEveComment($arr[$keys[128]]);
     }
     if (array_key_exists($keys[129], $arr)) {
         $this->setGuarFaxPhone1($arr[$keys[129]]);
     }
     if (array_key_exists($keys[130], $arr)) {
         $this->setGuarFaxComment1($arr[$keys[130]]);
     }
     if (array_key_exists($keys[131], $arr)) {
         $this->setGuarMobilePhone($arr[$keys[131]]);
     }
     if (array_key_exists($keys[132], $arr)) {
         $this->setGuarMobileComment($arr[$keys[132]]);
     }
     if (array_key_exists($keys[133], $arr)) {
         $this->setGuarPagerPhone($arr[$keys[133]]);
     }
     if (array_key_exists($keys[134], $arr)) {
         $this->setGuarPagerComment($arr[$keys[134]]);
     }
     if (array_key_exists($keys[135], $arr)) {
         $this->setGuarOtherPhone($arr[$keys[135]]);
     }
     if (array_key_exists($keys[136], $arr)) {
         $this->setGuarOtherComment($arr[$keys[136]]);
     }
     if (array_key_exists($keys[137], $arr)) {
         $this->setGuarGuarEmail($arr[$keys[137]]);
     }
     if (array_key_exists($keys[138], $arr)) {
         $this->setReqFaxPhone1($arr[$keys[138]]);
     }
     if (array_key_exists($keys[139], $arr)) {
         $this->setReqFaxComment1($arr[$keys[139]]);
     }
     if (array_key_exists($keys[140], $arr)) {
         $this->setPassEnglish($arr[$keys[140]]);
     }
     if (array_key_exists($keys[141], $arr)) {
         $this->setPassLanguage($arr[$keys[141]]);
     }
     if (array_key_exists($keys[142], $arr)) {
         $this->setApptTime($arr[$keys[142]]);
     }
     if (array_key_exists($keys[143], $arr)) {
         $this->setRequesterId($arr[$keys[143]]);
     }
     if (array_key_exists($keys[144], $arr)) {
         $this->setPassengerId($arr[$keys[144]]);
     }
     if (array_key_exists($keys[145], $arr)) {
         $this->setMissionId($arr[$keys[145]]);
     }
     if (array_key_exists($keys[146], $arr)) {
         $this->setTreatingEmail($arr[$keys[146]]);
     }
     if (array_key_exists($keys[147], $arr)) {
         $this->setPassHeight($arr[$keys[147]]);
     }
     if (array_key_exists($keys[148], $arr)) {
         $this->setReturnTime($arr[$keys[148]]);
     }
     if (array_key_exists($keys[149], $arr)) {
         $this->setPassOxygen($arr[$keys[149]]);
     }
     if (array_key_exists($keys[150], $arr)) {
         $this->setPassMedical($arr[$keys[150]]);
     }
     if (array_key_exists($keys[151], $arr)) {
         $this->setReferralSourceId($arr[$keys[151]]);
     }
     if (array_key_exists($keys[152], $arr)) {
         $this->setFollowUpContactName($arr[$keys[152]]);
     }
     if (array_key_exists($keys[153], $arr)) {
         $this->setFollowUpContactPhone($arr[$keys[153]]);
     }
     if (array_key_exists($keys[154], $arr)) {
         $this->setFollowUpEmail($arr[$keys[154]]);
     }
     if (array_key_exists($keys[155], $arr)) {
         $this->setMissReqOriginatorAfaOrgId($arr[$keys[155]]);
     }
     if (array_key_exists($keys[156], $arr)) {
         $this->setAfaOrgId($arr[$keys[156]]);
     }
     if (array_key_exists($keys[157], $arr)) {
         $this->setAfaOrgMissionId($arr[$keys[157]]);
     }
     if (array_key_exists($keys[158], $arr)) {
         $this->setMissionRequestType($arr[$keys[158]]);
     }
     if (array_key_exists($keys[159], $arr)) {
         $this->setLastPageProcessed($arr[$keys[159]]);
     }
     if (array_key_exists($keys[160], $arr)) {
         $this->setGuardianMiddleName($arr[$keys[160]]);
     }
     if (array_key_exists($keys[161], $arr)) {
         $this->setGuardianNickname($arr[$keys[161]]);
     }
     if (array_key_exists($keys[162], $arr)) {
         $this->setGuardianPagerEmail($arr[$keys[162]]);
     }
     if (array_key_exists($keys[163], $arr)) {
         $this->setGuardianSecondaryEmail($arr[$keys[163]]);
     }
     if (array_key_exists($keys[164], $arr)) {
         $this->setGuardianSuffix($arr[$keys[164]]);
     }
     if (array_key_exists($keys[165], $arr)) {
         $this->setGuardianTitle($arr[$keys[165]]);
     }
     if (array_key_exists($keys[166], $arr)) {
         $this->setGuardianVeteran($arr[$keys[166]]);
     }
     if (array_key_exists($keys[167], $arr)) {
         $this->setPassGender($arr[$keys[167]]);
     }
     if (array_key_exists($keys[168], $arr)) {
         $this->setPassMiddleName($arr[$keys[168]]);
     }
     if (array_key_exists($keys[169], $arr)) {
         $this->setPassNickname($arr[$keys[169]]);
     }
     if (array_key_exists($keys[170], $arr)) {
         $this->setPassPagerEmail($arr[$keys[170]]);
     }
     if (array_key_exists($keys[171], $arr)) {
         $this->setPassSecondaryEmail($arr[$keys[171]]);
     }
     if (array_key_exists($keys[172], $arr)) {
         $this->setPassSuffix($arr[$keys[172]]);
     }
     if (array_key_exists($keys[173], $arr)) {
         $this->setPassVeteran($arr[$keys[173]]);
     }
     if (array_key_exists($keys[174], $arr)) {
         $this->setReqMiddleName($arr[$keys[174]]);
     }
     if (array_key_exists($keys[175], $arr)) {
         $this->setReqNickname($arr[$keys[175]]);
     }
     if (array_key_exists($keys[176], $arr)) {
         $this->setReqPagerEmail($arr[$keys[176]]);
     }
     if (array_key_exists($keys[177], $arr)) {
         $this->setReqSecondaryEmail($arr[$keys[177]]);
     }
     if (array_key_exists($keys[178], $arr)) {
         $this->setReqSuffix($arr[$keys[178]]);
     }
     if (array_key_exists($keys[179], $arr)) {
         $this->setReqVeteran($arr[$keys[179]]);
     }
     if (array_key_exists($keys[180], $arr)) {
         $this->setLodgingPhoneComment($arr[$keys[180]]);
     }
     if (array_key_exists($keys[181], $arr)) {
         $this->setReqGender($arr[$keys[181]]);
     }
     if (array_key_exists($keys[182], $arr)) {
         $this->setGuardianGender($arr[$keys[182]]);
     }
     if (array_key_exists($keys[183], $arr)) {
         $this->setAgencyPosition($arr[$keys[183]]);
     }
 }
 /**
  * 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(MissionRequestTempPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(MissionRequestTempPeer::DATABASE_NAME);
         $criteria->add(MissionRequestTempPeer::ID, $pks, Criteria::IN);
         $objs = MissionRequestTempPeer::doSelect($criteria, $con);
     }
     return $objs;
 }