/** * 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(RpApplicationSearchPeer::DATABASE_NAME, Propel::CONNECTION_READ); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(RpApplicationSearchPeer::DATABASE_NAME); $criteria->add(RpApplicationSearchPeer::ID, $pks, Criteria::IN); $objs = RpApplicationSearchPeer::doSelect($criteria, $con); } return $objs; }
/** * 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 = RpApplicationSearchPeer::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->setPersonid($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->setAddress1($arr[$keys[5]]); } if (array_key_exists($keys[6], $arr)) { $this->setCity($arr[$keys[6]]); } if (array_key_exists($keys[7], $arr)) { $this->setState($arr[$keys[7]]); } if (array_key_exists($keys[8], $arr)) { $this->setZipcode($arr[$keys[8]]); } if (array_key_exists($keys[9], $arr)) { $this->setCounty($arr[$keys[9]]); } if (array_key_exists($keys[10], $arr)) { $this->setAreacode($arr[$keys[10]]); } if (array_key_exists($keys[11], $arr)) { $this->setDayphone($arr[$keys[11]]); } if (array_key_exists($keys[12], $arr)) { $this->setDaycomment($arr[$keys[12]]); } if (array_key_exists($keys[13], $arr)) { $this->setEveningphone($arr[$keys[13]]); } if (array_key_exists($keys[14], $arr)) { $this->setEvecomment($arr[$keys[14]]); } if (array_key_exists($keys[15], $arr)) { $this->setMobilephone($arr[$keys[15]]); } if (array_key_exists($keys[16], $arr)) { $this->setMobilecomment($arr[$keys[16]]); } if (array_key_exists($keys[17], $arr)) { $this->setOtherphone($arr[$keys[17]]); } if (array_key_exists($keys[18], $arr)) { $this->setOthercomment($arr[$keys[18]]); } if (array_key_exists($keys[19], $arr)) { $this->setPagerphone($arr[$keys[19]]); } if (array_key_exists($keys[20], $arr)) { $this->setPagercomment($arr[$keys[20]]); } if (array_key_exists($keys[21], $arr)) { $this->setEmail($arr[$keys[21]]); } if (array_key_exists($keys[22], $arr)) { $this->setSpousepilot($arr[$keys[22]]); } if (array_key_exists($keys[23], $arr)) { $this->setWingid($arr[$keys[23]]); } if (array_key_exists($keys[24], $arr)) { $this->setWingname($arr[$keys[24]]); } if (array_key_exists($keys[25], $arr)) { $this->setRenewaldate($arr[$keys[25]]); } if (array_key_exists($keys[26], $arr)) { $this->setJoindate($arr[$keys[26]]); } if (array_key_exists($keys[27], $arr)) { $this->setJoinyear($arr[$keys[27]]); } if (array_key_exists($keys[28], $arr)) { $this->setRefsourceid($arr[$keys[28]]); } if (array_key_exists($keys[29], $arr)) { $this->setRefsourcename($arr[$keys[29]]); } if (array_key_exists($keys[30], $arr)) { $this->setCompanymatchfunds($arr[$keys[30]]); } if (array_key_exists($keys[31], $arr)) { $this->setCompanyname($arr[$keys[31]]); } if (array_key_exists($keys[32], $arr)) { $this->setCompanyposition($arr[$keys[32]]); } if (array_key_exists($keys[33], $arr)) { $this->setVocationclassid($arr[$keys[33]]); } if (array_key_exists($keys[34], $arr)) { $this->setVocationclassname($arr[$keys[34]]); } if (array_key_exists($keys[35], $arr)) { $this->setMemberaopa($arr[$keys[35]]); } if (array_key_exists($keys[36], $arr)) { $this->setMemberkiwanis($arr[$keys[36]]); } if (array_key_exists($keys[37], $arr)) { $this->setMemberrotary($arr[$keys[37]]); } if (array_key_exists($keys[38], $arr)) { $this->setMemberlions($arr[$keys[38]]); } if (array_key_exists($keys[39], $arr)) { $this->setMember99s($arr[$keys[39]]); } if (array_key_exists($keys[40], $arr)) { $this->setMemberwia($arr[$keys[40]]); } if (array_key_exists($keys[41], $arr)) { $this->setMissionorientation($arr[$keys[41]]); } if (array_key_exists($keys[42], $arr)) { $this->setMissioncoordination($arr[$keys[42]]); } if (array_key_exists($keys[43], $arr)) { $this->setPilotrecruitment($arr[$keys[43]]); } if (array_key_exists($keys[44], $arr)) { $this->setFundraising($arr[$keys[44]]); } if (array_key_exists($keys[45], $arr)) { $this->setCelebritycontacts($arr[$keys[45]]); } if (array_key_exists($keys[46], $arr)) { $this->setGraphicarts($arr[$keys[46]]); } if (array_key_exists($keys[47], $arr)) { $this->setHospitaloutreach($arr[$keys[47]]); } if (array_key_exists($keys[48], $arr)) { $this->setEventplanning($arr[$keys[48]]); } if (array_key_exists($keys[49], $arr)) { $this->setMediarelations($arr[$keys[49]]); } if (array_key_exists($keys[50], $arr)) { $this->setTelephonework($arr[$keys[50]]); } if (array_key_exists($keys[51], $arr)) { $this->setComputers($arr[$keys[51]]); } if (array_key_exists($keys[52], $arr)) { $this->setPrinting($arr[$keys[52]]); } if (array_key_exists($keys[53], $arr)) { $this->setWriting($arr[$keys[53]]); } if (array_key_exists($keys[54], $arr)) { $this->setSpeakersbureau($arr[$keys[54]]); } if (array_key_exists($keys[55], $arr)) { $this->setWingteam($arr[$keys[55]]); } if (array_key_exists($keys[56], $arr)) { $this->setWebinternet($arr[$keys[56]]); } if (array_key_exists($keys[57], $arr)) { $this->setFoundationcontacts($arr[$keys[57]]); } if (array_key_exists($keys[58], $arr)) { $this->setAviationcontacts($arr[$keys[58]]); } if (array_key_exists($keys[59], $arr)) { $this->setDisasterresponseinterest($arr[$keys[59]]); } if (array_key_exists($keys[60], $arr)) { $this->setActive($arr[$keys[60]]); } if (array_key_exists($keys[61], $arr)) { $this->setPrimaryAirportId($arr[$keys[61]]); } if (array_key_exists($keys[62], $arr)) { $this->setHomebase($arr[$keys[62]]); } if (array_key_exists($keys[63], $arr)) { $this->setId($arr[$keys[63]]); } }