简体   繁体   中英

Doctrine can't find a connection after Zend Framework redirect

I have some troubles with Doctrine integration into ZF.

After simple redirect

$this->redirector->setGotoSimple("asd");

Doctrine returns

Doctrine_Connection_Exception: There is no open connection in /Users/insight/Sites/max/library/Doctrine/Manager.php on line 657

if i try to get this "asd" page directly or press f5 at the error page it loads normally with no error. why so?

I found the mistake. You should not to start session before DoctrineInit in the bootstrap, otherwise, it overrides your serialization data in the Doctrine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM