Merged in feature/HOR-3796 (pull request #6012)
HOR-3796 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
8564a6ab53
@@ -503,4 +503,26 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
|||||||
|
|
||||||
return (int) $aRow['TOTAL'];
|
return (int) $aRow['TOTAL'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated This function is deprecated, it hasn’t been removed because of its compatibility with the External Registration plugin
|
||||||
|
* @param $where
|
||||||
|
* @param $set
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function updateCurrentUser($where, $set)
|
||||||
|
{
|
||||||
|
$con = Propel::getConnection('workflow');
|
||||||
|
//Update - WHERE
|
||||||
|
$criteriaWhere = new Criteria('workflow');
|
||||||
|
$criteriaWhere->add(ListParticipatedLastPeer::APP_UID, $where['APP_UID'], Criteria::EQUAL);
|
||||||
|
$criteriaWhere->add(ListParticipatedLastPeer::USR_UID, $where['USR_UID'], Criteria::EQUAL);
|
||||||
|
$criteriaWhere->add(ListParticipatedLastPeer::DEL_INDEX, $where['DEL_INDEX'], Criteria::EQUAL);
|
||||||
|
//Update - SET
|
||||||
|
$criteriaSet = new Criteria('workflow');
|
||||||
|
foreach ($set as $k => $v) {
|
||||||
|
eval('$criteriaSet->add( ListParticipatedLastPeer::' . $k . ',$v, Criteria::EQUAL);');
|
||||||
|
}
|
||||||
|
BasePeer::doUpdate($criteriaWhere, $criteriaSet, $con);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user