Skip to content

Commit bda9060

Browse files
committed
Issue #65: Add again Propel from sfDatabaseSessionStorage
Rollback droping support for Propel sessions in database
1 parent 4dafef3 commit bda9060

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)