update query based on condition
$con = sfContext::getInstance()->getDatabaseConnection(‘propel’); $c2 = new Criteria(); $c2->add(TblTopPeer::TF_ZIPCODE,$topForecastInfo->getForZipcode()); $c2->add(TblTopPeer::TF_FORCASTDATE,$topForecastInfo->getForForecastdate()); $c3 = new Criteria(); $c3->add(TblTopPeer::TF_FID,$topForecastInfo->getForId()); $c3->add(TblTopPeer::TF_USERID,$topForecastInfo->getForUserid()); $c3->add(TblTopPeer::TF_LATITUDE,$zipInfo->getZipLatitude()); $c3->add(TblTopPeer::TF_LONGITUDE,$zipInfo->getZipLongitude()); BasePeer::doUpdate($c2, $c3, $con); OR $con = Propel::getConnection(); // select from... $c1 = new…