/**
  * 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 = RpMemberApplicationPeer::getFieldNames($keyType);
     if (array_key_exists($keys[0], $arr)) {
         $this->setApplicationid($arr[$keys[0]]);
     }
     if (array_key_exists($keys[1], $arr)) {
         $this->setApplicationdate($arr[$keys[1]]);
     }
     if (array_key_exists($keys[2], $arr)) {
         $this->setTitle($arr[$keys[2]]);
     }
     if (array_key_exists($keys[3], $arr)) {
         $this->setFirstname($arr[$keys[3]]);
     }
     if (array_key_exists($keys[4], $arr)) {
         $this->setLastname($arr[$keys[4]]);
     }
     if (array_key_exists($keys[5], $arr)) {
         $this->setAddressone($arr[$keys[5]]);
     }
     if (array_key_exists($keys[6], $arr)) {
         $this->setAddresstwo($arr[$keys[6]]);
     }
     if (array_key_exists($keys[7], $arr)) {
         $this->setCity($arr[$keys[7]]);
     }
     if (array_key_exists($keys[8], $arr)) {
         $this->setState($arr[$keys[8]]);
     }
     if (array_key_exists($keys[9], $arr)) {
         $this->setZipcode($arr[$keys[9]]);
     }
     if (array_key_exists($keys[10], $arr)) {
         $this->setDayphone($arr[$keys[10]]);
     }
     if (array_key_exists($keys[11], $arr)) {
         $this->setPilotdaycomment($arr[$keys[11]]);
     }
     if (array_key_exists($keys[12], $arr)) {
         $this->setEvephone($arr[$keys[12]]);
     }
     if (array_key_exists($keys[13], $arr)) {
         $this->setPilotevecomment($arr[$keys[13]]);
     }
     if (array_key_exists($keys[14], $arr)) {
         $this->setFaxphone1($arr[$keys[14]]);
     }
     if (array_key_exists($keys[15], $arr)) {
         $this->setPilotfaxcomment($arr[$keys[15]]);
     }
     if (array_key_exists($keys[16], $arr)) {
         $this->setFaxphone2($arr[$keys[16]]);
     }
     if (array_key_exists($keys[17], $arr)) {
         $this->setPilotfaxcomment2($arr[$keys[17]]);
     }
     if (array_key_exists($keys[18], $arr)) {
         $this->setMobilephone($arr[$keys[18]]);
     }
     if (array_key_exists($keys[19], $arr)) {
         $this->setPilotmobilecomment($arr[$keys[19]]);
     }
     if (array_key_exists($keys[20], $arr)) {
         $this->setPagerphone($arr[$keys[20]]);
     }
     if (array_key_exists($keys[21], $arr)) {
         $this->setPilotpagercomment($arr[$keys[21]]);
     }
     if (array_key_exists($keys[22], $arr)) {
         $this->setOtherphone($arr[$keys[22]]);
     }
     if (array_key_exists($keys[23], $arr)) {
         $this->setPilotothercomment($arr[$keys[23]]);
     }
     if (array_key_exists($keys[24], $arr)) {
         $this->setEmail($arr[$keys[24]]);
     }
     if (array_key_exists($keys[25], $arr)) {
         $this->setPageemail($arr[$keys[25]]);
     }
     if (array_key_exists($keys[26], $arr)) {
         $this->setSecondaryemail($arr[$keys[26]]);
     }
     if (array_key_exists($keys[27], $arr)) {
         $this->setSpousefirstname($arr[$keys[27]]);
     }
     if (array_key_exists($keys[28], $arr)) {
         $this->setSpouselastname($arr[$keys[28]]);
     }
     if (array_key_exists($keys[29], $arr)) {
         $this->setApplicantpilot($arr[$keys[29]]);
     }
     if (array_key_exists($keys[30], $arr)) {
         $this->setSpousepilot($arr[$keys[30]]);
     }
     if (array_key_exists($keys[31], $arr)) {
         $this->setApplicantcopilot($arr[$keys[31]]);
     }
     if (array_key_exists($keys[32], $arr)) {
         $this->setLanguagesspoken($arr[$keys[32]]);
     }
     if (array_key_exists($keys[33], $arr)) {
         $this->setHomebase($arr[$keys[33]]);
     }
     if (array_key_exists($keys[34], $arr)) {
         $this->setFboname($arr[$keys[34]]);
     }
     if (array_key_exists($keys[35], $arr)) {
         $this->setApmake($arr[$keys[35]]);
     }
     if (array_key_exists($keys[36], $arr)) {
         $this->setApmodel($arr[$keys[36]]);
     }
     if (array_key_exists($keys[37], $arr)) {
         $this->setAircraftprimaryown($arr[$keys[37]]);
     }
     if (array_key_exists($keys[38], $arr)) {
         $this->setAircraftprimaryice($arr[$keys[38]]);
     }
     if (array_key_exists($keys[39], $arr)) {
         $this->setAircraftprimaryseats($arr[$keys[39]]);
     }
     if (array_key_exists($keys[40], $arr)) {
         $this->setAircraftprimarynnumber($arr[$keys[40]]);
     }
     if (array_key_exists($keys[41], $arr)) {
         $this->setAsmake($arr[$keys[41]]);
     }
     if (array_key_exists($keys[42], $arr)) {
         $this->setAsmodel($arr[$keys[42]]);
     }
     if (array_key_exists($keys[43], $arr)) {
         $this->setAircraftsecondaryown($arr[$keys[43]]);
     }
     if (array_key_exists($keys[44], $arr)) {
         $this->setAircraftsecondaryice($arr[$keys[44]]);
     }
     if (array_key_exists($keys[45], $arr)) {
         $this->setAircraftsecondaryseats($arr[$keys[45]]);
     }
     if (array_key_exists($keys[46], $arr)) {
         $this->setAircraftsecondarynnumber($arr[$keys[46]]);
     }
     if (array_key_exists($keys[47], $arr)) {
         $this->setPilotcertificate($arr[$keys[47]]);
     }
     if (array_key_exists($keys[48], $arr)) {
         $this->setRatings($arr[$keys[48]]);
     }
     if (array_key_exists($keys[49], $arr)) {
         $this->setMedicalclass($arr[$keys[49]]);
     }
     if (array_key_exists($keys[50], $arr)) {
         $this->setLicensetype($arr[$keys[50]]);
     }
     if (array_key_exists($keys[51], $arr)) {
         $this->setTotalhours($arr[$keys[51]]);
     }
     if (array_key_exists($keys[52], $arr)) {
         $this->setIfrhours($arr[$keys[52]]);
     }
     if (array_key_exists($keys[53], $arr)) {
         $this->setMultihours($arr[$keys[53]]);
     }
     if (array_key_exists($keys[54], $arr)) {
         $this->setOtherhours($arr[$keys[54]]);
     }
     if (array_key_exists($keys[55], $arr)) {
         $this->setDateofbirth($arr[$keys[55]]);
     }
     if (array_key_exists($keys[56], $arr)) {
         $this->setHeight($arr[$keys[56]]);
     }
     if (array_key_exists($keys[57], $arr)) {
         $this->setWeight($arr[$keys[57]]);
     }
     if (array_key_exists($keys[58], $arr)) {
         $this->setAvailabilityweekdays($arr[$keys[58]]);
     }
     if (array_key_exists($keys[59], $arr)) {
         $this->setAvailabilityweeknights($arr[$keys[59]]);
     }
     if (array_key_exists($keys[60], $arr)) {
         $this->setAvailabilityweekends($arr[$keys[60]]);
     }
     if (array_key_exists($keys[61], $arr)) {
         $this->setAvailabilitynotice($arr[$keys[61]]);
     }
     if (array_key_exists($keys[62], $arr)) {
         $this->setAvailabilitylastminute($arr[$keys[62]]);
     }
     if (array_key_exists($keys[63], $arr)) {
         $this->setAvailabilitycopilot($arr[$keys[63]]);
     }
     if (array_key_exists($keys[64], $arr)) {
         $this->setAffirmationagreed($arr[$keys[64]]);
     }
     if (array_key_exists($keys[65], $arr)) {
         $this->setInsuranceagreed($arr[$keys[65]]);
     }
     if (array_key_exists($keys[66], $arr)) {
         $this->setHseatsinterest($arr[$keys[66]]);
     }
     if (array_key_exists($keys[67], $arr)) {
         $this->setVolunteerinterest($arr[$keys[67]]);
     }
     if (array_key_exists($keys[68], $arr)) {
         $this->setCompanyposition($arr[$keys[68]]);
     }
     if (array_key_exists($keys[69], $arr)) {
         $this->setCompanymatchfunds($arr[$keys[69]]);
     }
     if (array_key_exists($keys[70], $arr)) {
         $this->setCompanybusinesscategoryid($arr[$keys[70]]);
     }
     if (array_key_exists($keys[71], $arr)) {
         $this->setReferralsource($arr[$keys[71]]);
     }
     if (array_key_exists($keys[72], $arr)) {
         $this->setReferralsourceother($arr[$keys[72]]);
     }
     if (array_key_exists($keys[73], $arr)) {
         $this->setPremiumchoice($arr[$keys[73]]);
     }
     if (array_key_exists($keys[74], $arr)) {
         $this->setPremiumsize($arr[$keys[74]]);
     }
     if (array_key_exists($keys[75], $arr)) {
         $this->setDuesamountpaid($arr[$keys[75]]);
     }
     if (array_key_exists($keys[76], $arr)) {
         $this->setDonationamountpaid($arr[$keys[76]]);
     }
     if (array_key_exists($keys[77], $arr)) {
         $this->setMethodofpaymentid($arr[$keys[77]]);
     }
     if (array_key_exists($keys[78], $arr)) {
         $this->setCcardapprovalnumber($arr[$keys[78]]);
     }
     if (array_key_exists($keys[79], $arr)) {
         $this->setProcesseddate($arr[$keys[79]]);
     }
     if (array_key_exists($keys[80], $arr)) {
         $this->setMissionorientation($arr[$keys[80]]);
     }
     if (array_key_exists($keys[81], $arr)) {
         $this->setMissioncoordination($arr[$keys[81]]);
     }
     if (array_key_exists($keys[82], $arr)) {
         $this->setPilotrecruitment($arr[$keys[82]]);
     }
     if (array_key_exists($keys[83], $arr)) {
         $this->setFundraising($arr[$keys[83]]);
     }
     if (array_key_exists($keys[84], $arr)) {
         $this->setCelebritycontacts($arr[$keys[84]]);
     }
     if (array_key_exists($keys[85], $arr)) {
         $this->setHospitaloutreach($arr[$keys[85]]);
     }
     if (array_key_exists($keys[86], $arr)) {
         $this->setMediarelations($arr[$keys[86]]);
     }
     if (array_key_exists($keys[87], $arr)) {
         $this->setTelephonework($arr[$keys[87]]);
     }
     if (array_key_exists($keys[88], $arr)) {
         $this->setComputers($arr[$keys[88]]);
     }
     if (array_key_exists($keys[89], $arr)) {
         $this->setClerical($arr[$keys[89]]);
     }
     if (array_key_exists($keys[90], $arr)) {
         $this->setPublicity($arr[$keys[90]]);
     }
     if (array_key_exists($keys[91], $arr)) {
         $this->setWriting($arr[$keys[91]]);
     }
     if (array_key_exists($keys[92], $arr)) {
         $this->setSpeakersbureau($arr[$keys[92]]);
     }
     if (array_key_exists($keys[93], $arr)) {
         $this->setWingteam($arr[$keys[93]]);
     }
     if (array_key_exists($keys[94], $arr)) {
         $this->setGraphicarts($arr[$keys[94]]);
     }
     if (array_key_exists($keys[95], $arr)) {
         $this->setEventplanning($arr[$keys[95]]);
     }
     if (array_key_exists($keys[96], $arr)) {
         $this->setWebinternet($arr[$keys[96]]);
     }
     if (array_key_exists($keys[97], $arr)) {
         $this->setFoundationcontacts($arr[$keys[97]]);
     }
     if (array_key_exists($keys[98], $arr)) {
         $this->setAviationcontacts($arr[$keys[98]]);
     }
     if (array_key_exists($keys[99], $arr)) {
         $this->setPrinting($arr[$keys[99]]);
     }
     if (array_key_exists($keys[100], $arr)) {
         $this->setMemberaopa($arr[$keys[100]]);
     }
     if (array_key_exists($keys[101], $arr)) {
         $this->setMemberkiwanis($arr[$keys[101]]);
     }
     if (array_key_exists($keys[102], $arr)) {
         $this->setMemberrotary($arr[$keys[102]]);
     }
     if (array_key_exists($keys[103], $arr)) {
         $this->setMemberlions($arr[$keys[103]]);
     }
     if (array_key_exists($keys[104], $arr)) {
         $this->setMemberninetynines($arr[$keys[104]]);
     }
     if (array_key_exists($keys[105], $arr)) {
         $this->setMemberwia($arr[$keys[105]]);
     }
     if (array_key_exists($keys[106], $arr)) {
         $this->setEdnewmembernotify($arr[$keys[106]]);
     }
     if (array_key_exists($keys[107], $arr)) {
         $this->setWnewmembernotify($arr[$keys[107]]);
     }
     if (array_key_exists($keys[108], $arr)) {
         $this->setBadgemade($arr[$keys[108]]);
     }
     if (array_key_exists($keys[109], $arr)) {
         $this->setNotebooksent($arr[$keys[109]]);
     }
     if (array_key_exists($keys[110], $arr)) {
         $this->setExternalid($arr[$keys[110]]);
     }
     if (array_key_exists($keys[111], $arr)) {
         $this->setNovapointeid($arr[$keys[111]]);
     }
     if (array_key_exists($keys[112], $arr)) {
         $this->setPremiumshipdate($arr[$keys[112]]);
     }
     if (array_key_exists($keys[113], $arr)) {
         $this->setPremiumshipmethod($arr[$keys[113]]);
     }
     if (array_key_exists($keys[114], $arr)) {
         $this->setPremiumshiptrackingnumber($arr[$keys[114]]);
     }
     if (array_key_exists($keys[115], $arr)) {
         $this->setId($arr[$keys[115]]);
     }
 }
 /**
  * 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(RpMemberApplicationPeer::DATABASE_NAME, Propel::CONNECTION_READ);
     }
     $objs = null;
     if (empty($pks)) {
         $objs = array();
     } else {
         $criteria = new Criteria(RpMemberApplicationPeer::DATABASE_NAME);
         $criteria->add(RpMemberApplicationPeer::ID, $pks, Criteria::IN);
         $objs = RpMemberApplicationPeer::doSelect($criteria, $con);
     }
     return $objs;
 }