Small fix in Doctrine_Cache_Query_Sqlite.php
This commit is contained in:
parent
eb3300270f
commit
0a46071206
@ -18,7 +18,7 @@ class Doctrine_Cache_Query_Sqlite implements Countable {
|
||||
* @param Doctrine_Connection|null $connection
|
||||
*/
|
||||
public function __construct($connection = null) {
|
||||
if( ! ($connection instanceof Doctrine_Session))
|
||||
if( ! ($connection instanceof Doctrine_Connection))
|
||||
$connection = Doctrine_Manager::getInstance()->getCurrentConnection();
|
||||
|
||||
$this->session = $connection;
|
||||
|
Loading…
x
Reference in New Issue
Block a user