Small fix in Doctrine_Cache_Query_Sqlite.php
This commit is contained in:
parent
eb3300270f
commit
0a46071206
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue