Hi Wil,
Thanks for your reply. Since my class actually implements
Zend_Session_SaveHandler_Interface, I don't have direct access to the
bootstrap object like I would from
Zend_Application_Resource_ResourceAbstract. In order to work around the
problem I am having, I just made the assumption that the bootstrap was
getting set in the front controller later in the process than where I was
trying to access it from. It makes sense, since you would probably wait
until all your resources were initialized before you set the bootstrap.
So instead of trying to set my entity manager in the init of the
SaveHandler, I now get it each time I'm trying to do a CRUD operation (e.g.
read, write, destroy, gc).
Also isn't exactly the way I was hoping it could work, but it's something I
can live with, since it's a trivial operation to make this call:
$em = Zend_Controller_Front::getInstance()
->getParam('bootstrap')
->getResource('doctrine');
Cheers,
K
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Accessing-Bootstrap-within-Session-Save-Handler-class-tp3208482p3209627.html
Sent from the Zend Framework mailing list archive at Nabble.com.