PMCORE-1841
This commit is contained in:
@@ -3417,24 +3417,26 @@ class Processes
|
|||||||
/**
|
/**
|
||||||
* Get DB Connections Rows for a Process
|
* Get DB Connections Rows for a Process
|
||||||
*
|
*
|
||||||
* @param array $sProUid
|
* @param string $proUid
|
||||||
* @return array $aConnections
|
* @return array $connections
|
||||||
*/
|
*/
|
||||||
public function getDBConnectionsRows($sProUid)
|
public function getDBConnectionsRows($proUid)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$aConnections = array();
|
$connections = [];
|
||||||
$oCriteria = new Criteria('workflow');
|
$criteria = new Criteria('workflow');
|
||||||
$oCriteria->add(DbSourcePeer::PRO_UID, $sProUid);
|
$criteria->add(DbSourcePeer::PRO_UID, $proUid);
|
||||||
$oDataset = DbSourcePeer::doSelectRS($oCriteria);
|
$dataset = DbSourcePeer::doSelectRS($criteria);
|
||||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
$oDataset->next();
|
$dataset->next();
|
||||||
while ($aRow = $oDataset->getRow()) {
|
while ($row = $dataset->getRow()) {
|
||||||
$oConnection = new DbSource();
|
$connection = new DbSource();
|
||||||
$aConnections[] = $oConnection->Load($aRow['DBS_UID'], $aRow['PRO_UID']);
|
$infoConnection = $connection->Load($row['DBS_UID'], $row['PRO_UID']);
|
||||||
$oDataset->next();
|
unset($infoConnection['DBS_ID']);
|
||||||
|
$connections[] = $infoConnection;
|
||||||
|
$dataset->next();
|
||||||
}
|
}
|
||||||
return $aConnections;
|
return $connections;
|
||||||
} catch (Exception $oError) {
|
} catch (Exception $oError) {
|
||||||
throw $oError;
|
throw $oError;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user