Permalink
Browse files

Fixed #325: a bug in ReverseManager.php:204: $dsn is undefined.

  • Loading branch information...
1 parent ae5f5db commit ff2055aa40bdb6f1a84cb742ef17d7bd37e8b403 @kadishmal kadishmal committed Dec 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Propel/Generator/Manager/ReverseManager.php
@@ -199,9 +199,9 @@ protected function getConnection()
// Set user + password to null if they are empty strings or missing
$username = isset($buildConnection['user']) && $buildConnection['user'] ? $buildConnection['user'] : null;
- $password = isset($buildConnection['password']) && $buildConnection['password'] ? $buildConnection['password'] : null;
+ $password = isset($buildConnection['password']) ? $buildConnection['password'] : null;
- $con = ConnectionFactory::create(array('dsn' => $dsn, 'user' => $username, 'password' => $password), AdapterFactory::create($buildConnection['adapter']));
+ $con = ConnectionFactory::create(array('dsn' => $buildConnection['dsn'], 'user' => $username, 'password' => $password), AdapterFactory::create($buildConnection['adapter']));
return $con;
}

0 comments on commit ff2055a

Please sign in to comment.