Permalink
Browse files

Applying fix for migrate connection error

  • Loading branch information...
1 parent af52773 commit 06aa3ec0345f2b0e43e6d0ebdf61697fdf1bdcaa @exptom exptom committed Mar 27, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 runtime/lib/Propel.php
@@ -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 . ']');

0 comments on commit 06aa3ec

Please sign in to comment.