HOR-1447
Cambiar la lógica para obtener los contadores HOR-1447 Cambiar la lógica para obtener los contadores
This commit is contained in:
@@ -405,5 +405,18 @@ class ListParticipatedLast extends BaseListParticipatedLast
|
||||
}
|
||||
BasePeer::doUpdate($criteriaWhere, $criteriaSet, $con);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of cases of a user
|
||||
* @param $usrUid
|
||||
* @return int
|
||||
*/
|
||||
public function getCountList($usrUid)
|
||||
{
|
||||
$criteria = new Criteria();
|
||||
$criteria->add(ListParticipatedLastPeer::USR_UID, $usrUid, Criteria::EQUAL);
|
||||
$total = ListParticipatedLastPeer::doCount($criteria);
|
||||
return (int)$total;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user