Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #326 from kadishmal/master

A fix for #325: A bug in ReverseManager.php:204: $dsn is undefined
  • Loading branch information...
commit fe90086008804967651f31414cfd331bf756840c 2 parents ae5f5db + ff2055a
@willdurand willdurand authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Propel/Generator/Manager/ReverseManager.php
View
4 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.