Skip to content

Commit 03b76a0

Browse files
committed
Merge pull request #66 from mmonguilod/master
Fix #65: Add again Propel from sfDatabaseSessionStorage
2 parents 4dafef3 + bda9060 commit 03b76a0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/storage/sfDatabaseSessionStorage.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ public function sessionOpen($path = null, $name = null)
101101

102102
// get the database and connection
103103
$databaseClass = get_class($database);
104-
if ($databaseClass == 'sfDoctrineDatabase')
104+
if ($databaseClass == 'sfPropelDatabase')
105+
{
106+
$this->db = Propel::getConnection($database->getParameter('name'));
107+
}
108+
elseif($databaseClass == 'sfDoctrineDatabase')
105109
{
106110
$this->db = $database->getConnection();
107111
}

0 commit comments

Comments
 (0)