Merged in bugfix/PMCORE-1842 (pull request #7430)

PMCORE-1842 Cases are not routed if there is a process that it has Report Table with external connections

Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-07-21 13:04:04 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -488,6 +488,13 @@ class Propel
* @Description: this was added for the additional database connections * * @Description: this was added for the additional database connections *
***********************************************************************/ ***********************************************************************/
DbConnections::loadAdditionalConnections(); DbConnections::loadAdditionalConnections();
//Method "DbConnections::loadAdditionalConnections()" does not work
//well in a multi-threaded environment, its restructuring is quite
//expensive and should be done in another improvement. Forcing the
//load ensures that additional connections are obtained.
if (empty(self::$configuration['datasources'][$name])) {
DbConnections::loadAdditionalConnections(true);
}
$dsn = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null; $dsn = isset(self::$configuration['datasources'][$name]['connection']) ? self::$configuration['datasources'][$name]['connection'] : null;
} else { } else {
throw new PropelException("No connection params set for " . $name); throw new PropelException("No connection params set for " . $name);