Commit 4fc6efd8 authored by zYne's avatar zYne

fixes #440

parent 157c2d5f
...@@ -1016,7 +1016,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun ...@@ -1016,7 +1016,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
$this->clear(); $this->clear();
$this->dbh = null; unset($this->dbh);
$this->isConnected = false; $this->isConnected = false;
$this->getAttribute(Doctrine::ATTR_LISTENER)->postClose($event); $this->getAttribute(Doctrine::ATTR_LISTENER)->postClose($event);
...@@ -1122,6 +1122,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun ...@@ -1122,6 +1122,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
{ {
$this->transaction->rollback($savepoint); $this->transaction->rollback($savepoint);
} }
/** /**
* returns a string representation of this object * returns a string representation of this object
* @return string * @return string
......
...@@ -291,6 +291,9 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera ...@@ -291,6 +291,9 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
if (isset($parts['host']) && $parts['host'] == ':memory') { if (isset($parts['host']) && $parts['host'] == ':memory') {
$parts['database'] = ':memory:'; $parts['database'] = ':memory:';
$parts['dsn'] = 'sqlite::memory:'; $parts['dsn'] = 'sqlite::memory:';
} else {
$parts['database'] = $parts['path'];
$parts['dsn'] = $parts['scheme'] . ':' . $parts['path'];
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment