public static function doSelectApplicant(Criteria $criteria, $con = null) { $criteria->add(NgStatusApplicantPeer::TYPE_STATUS, NgStatusApplicant::APPLICANT); $criteria->addAscendingOrderByColumn(NgStatusApplicantPeer::ID); return NgStatusApplicantPeer::doSelect($criteria); }
public static function retrieveByPKs($pks, $con = null) { if ($con === null) { $con = Propel::getConnection(self::DATABASE_NAME); } $objs = null; if (empty($pks)) { $objs = array(); } else { $criteria = new Criteria(); $criteria->add(NgStatusApplicantPeer::ID, $pks, Criteria::IN); $objs = NgStatusApplicantPeer::doSelect($criteria, $con); } return $objs; }