Skip to content

Commit

Permalink
Merge pull request propelorm#851 from exptom/1.7.1-fix
Browse files Browse the repository at this point in the history
Fix for migrate connection error
  • Loading branch information
willdurand committed Mar 28, 2014
2 parents 25620fc + 06aa3ec commit 10180f9
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 @@ -648,7 +648,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 10180f9

Please sign in to comment.