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

This commit is contained in:
Roly Rudy Gutierrez Pinto
2020-07-20 21:15:52 -04:00
parent c853d733a4
commit dd81dde935

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);