Revision: 9335.
When using a remote MySQL server for a webapp:
lib/storage/sfMySQLSessionStorage.class.php
generates an error:
[sfDatabaseException]
stack trace
- at ()
in SF_SYMFONY_LIB_DIR/storage/sfMySQLSessionStorage.class.php line 126 ...
- }
124.
- // can't create record
- throw new sfDatabaseException(sprintf('% cannot create new record for id "%s" (%s).', get_class($this), $id, mysql_error()));
- }
- }
129.
- at sfMySQLSessionStorage->sessionRead('2ad2d4e53695d47bee5a9a926a28a5bf')
in n/a line n/a ...
- at session_start()
in SF_SYMFONY_LIB_DIR/storage/sfDatabaseSessionStorage.class.php line 72 ...
If at line 172 and 183 you add ->getResource() to $this->db it starts working.
$this->db->getResource() instead of $this->db !
If you add ->getResource() you the unit test will fail but symfony works. If you remove Symfony will not work and unit test will pass.