Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

A fix for #325: A bug in ReverseManager.php:204: $dsn is undefined #326

Merged
merged 1 commit into from

2 participants

@kadishmal

A fix for #325: A bug in ReverseManager.php:204: $dsn is undefined

@willdurand
Owner

thank you!

@willdurand willdurand merged commit fe90086 into propelorm:master
@krichprollsch krichprollsch referenced this pull request from a commit in krichprollsch/Propel2
@krichprollsch krichprollsch Port PR #326 from Propel 1.6 cdd3699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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;
}
Something went wrong with that request. Please try again.