public static function retrieveByStrippedTitleAndDate($text, $date, $con = null)
 {
     if ($con === null) {
         $con = Propel::getConnection(self::DATABASE_NAME);
     }
     $criteria = new Criteria(sfSimpleBlogPostPeer::DATABASE_NAME);
     $criteria->add(sfSimpleBlogPostPeer::STRIPPED_TITLE, $text);
     if (sfConfig::get('app_sfSimpleBlog_use_date_in_url', false)) {
         $criteria->add(sfSimpleBlogPostPeer::PUBLISHED_AT, $date);
     }
     $v = sfSimpleBlogPostPeer::doSelect($criteria, $con);
     return !empty($v) > 0 ? $v[0] : null;
 }
 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(sfSimpleBlogPostPeer::ID, $pks, Criteria::IN);
         $objs = sfSimpleBlogPostPeer::doSelect($criteria, $con);
     }
     return $objs;
 }