Hey,

I was wondering if it was possible to use Doctrine for session storage
into a DB. I know there is a PdoSessionStorage already that comes with
symfony2 (not functional yet) but how would this be done using
Doctrine.

What I've done is passed an EntityManager to my
"DoctrineSessionStorage" service, but the problem arises with the
sessionWrite() function. It's called after object destruction, so it
looks like the EntityManager is destroyed before it can be used.

I get the error:
Fatal error: spl_autoload() [function.spl-autoload.php]: Class Doctrine
\ORM\...

I'm not sure how this can be solved, any ideas?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to