fixes #440
This commit is contained in:
parent
157c2d5fed
commit
4fc6efd82f
@ -1016,7 +1016,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
|
||||
|
||||
$this->clear();
|
||||
|
||||
$this->dbh = null;
|
||||
unset($this->dbh);
|
||||
$this->isConnected = false;
|
||||
|
||||
$this->getAttribute(Doctrine::ATTR_LISTENER)->postClose($event);
|
||||
@ -1122,6 +1122,7 @@ abstract class Doctrine_Connection extends Doctrine_Configurable implements Coun
|
||||
{
|
||||
$this->transaction->rollback($savepoint);
|
||||
}
|
||||
|
||||
/**
|
||||
* returns a string representation of this object
|
||||
* @return string
|
||||
|
@ -291,6 +291,9 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
|
||||
if (isset($parts['host']) && $parts['host'] == ':memory') {
|
||||
$parts['database'] = ':memory:';
|
||||
$parts['dsn'] = 'sqlite::memory:';
|
||||
} else {
|
||||
$parts['database'] = $parts['path'];
|
||||
$parts['dsn'] = $parts['scheme'] . ':' . $parts['path'];
|
||||
}
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user