All pastes #1367946 Raw Edit

code snippet

public text v1 · immutable
#1367946 ·published 2009-03-22 11:57 UTC
rendered paste body
                $con = Propel::getConnection();                $update = new Criteria();                $update->add(LinksPeer::STATUS,$Suspended);                $c1 = new Criteria();                $c1->add(DomainsPeer::USERID,$UserID);                $c1->addJoin(DomainsPeer::ID,LinksPeer::COMINGFROMDOMAINID,Criteria::LEFT_JOIN);                BasePeer::doUpdate($c1, $update, $con);