public static function getActiveCategories(Criteria $criteria = null, $con = null) { if (is_null($criteria)) { $criteria = new Criteria(); } $criteria->add(sfFaqCategoryPeer::ACTIVATE, true); return sfFaqCategoryPeer::doSelect($criteria, $con); }
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(sfFaqCategoryPeer::ID, $pks, Criteria::IN); $objs = sfFaqCategoryPeer::doSelect($criteria, $con); } return $objs; }