Skip to content

Commit

Permalink
fix for propel bug propelorm#741
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Biel committed Feb 5, 2014
1 parent 93f9fc8 commit 846640a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lib/Propel.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ public static function getSlaveConnection($name)
*/
public static function initConnection($conparams, $name, $defaultClass = Propel::CLASS_PROPEL_PDO)
{
$adapter = self::getDB($name);
$adapter = isset($conparams['adapter']) ? DBAdapter::factory($conparams['adapter']) : self::getDB($name);

if (null === $conparams['dsn']) {
throw new PropelException('No dsn specified in your connection parameters for datasource [' . $name . ']');
Expand Down

0 comments on commit 846640a

Please sign in to comment.