$con = Propel::getConnection();
// select from…
$c1 = new Criteria();
$c1->add(FacilitiesBookingsPeer::FAB_ID, $fabId);
// update set
$c2 = new Criteria();
$c2->add(FacilitiesBookingsPeer::FAB_SLOTS, $newSlot);
BasePeer::doUpdate($c1, $c2, $con);
here in the code given above $c1 stands for “where” criteria of query
while $c2 stands for the fields to be updated. also you can add other fields to be updated if you want.
the last line of the code block “BasePeer::doUpdate($c1, $c2, $con);” remains as it is. while the others are according to your table in action. here we have “FacilitiesBookingsPeer::FAB_SLOTS ” FacilitiesBookingsPeer is table and FAB_SLOTS is the field name to be updated

