> It is trying to > load 'MyApp/Entity/Proxy/__CG__/MyApp/Entity/LogViewSummary.php' but it > should really >load 'MyApp/Entity/Proxy/__CG__MyApp/EntityLogViewSummary.php'
are you using the class Entity_LogViewSummary instead of EntityLogViewSummary anywhere ? Kranthi. http://goo.gl/e6t3 On 12 March 2012 07:30, Marco Pivetta <[email protected]> wrote: > Nope. As I said on the doctrine ml, you should serialize the identifier > only. > The solution of detaching the entity can work, but you're never sure if it > is a proxy. Plus, the problems with autoloading the class for the > serialized object is still there. > You can try it out with a raw session_start(); and $_SESSION... ZF is not > really involved in this issue. Any attempt to unserialize data without > proper autoloading in place would fail. > Marco Pivetta > > http://twitter.com/Ocramius > > http://marco-pivetta.com > > > > On 11 March 2012 23:31, mbneto [via Zend Framework Community] < > [email protected]> wrote: > > > Hi Marco, > > > > So you hang around here too? :) > > > > So what are my options to solve this? detach the user prior to using the > > zend_auth::authenticate? > > > > On Sun, Mar 11, 2012 at 1:09 PM, Marco Pivetta <[hidden email]< > http://user/SendEmail.jtp?type=node&node=4464790&i=0>> > > wrote: > > > > > Told you it is painful to serialize entities :) Guess why? :P > > > Anyway, this is a doctrine related question, and not an issue of > > > Zend_Session at all :) > > > > > > Marco Pivetta > > > > > > http://twitter.com/Ocramius > > > > > > http://marco-pivetta.com > > > > > > > > > > > > On 11 March 2012 17:18, mbneto [via Zend Framework Community] < > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=4464790&i=1>> > > wrote: > > > > > > > Hi, > > > > > > > > I am using ZF1 + Doctrine 2 (via Bisna). Everything is fine so far > > > except > > > > when I try to use Zend_Auth to authenticate. The first time it works > > but > > > > If I try to reload it I get the error below. > > > > > > > > Zend_Session::start() - > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Loader.php(Line:146): > > > > Error #2 include_once(): Failed opening > > > > 'MyApp/Entity/Proxy/__CG__/MyApp/Entity/LogViewSummary.php' for > > inclusion > > > > > > > > > > (include_path='/Users/mbneto/Sites/myapp/application/../library:/Users/mbneto/Sites/myapp/library:.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear') > > > > > > > > > > Array<br /> > > > > #0 > > > > > > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Session/Namespace.php(143): > > > > > > > > > > Zend_Session::start(true)#1 > > > > > > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Auth/Storage/Session.php(87): > > > > > > > > > > Zend_Session_Namespace->__construct('Zend_Auth')#2 > > > > /usr/local/zend/share/ZendFramework/library/Zend/Auth.php(91): > > > > Zend_Auth_Storage_Session->__construct()#3 > > > > /usr/local/zend/share/ZendFramework/library/Zend/Auth.php(141): > > > > Zend_Auth->getStorage()#4 > > > > /usr/local/zend/share/ZendFramework/library/Zend/Auth.php(123): > > > > Zend_Auth->hasIdentity()#5 > > > > /Users/mbneto/Sites/myapp/library/MyApp/User/Auth/Service.php(128): > > > > Zend_Auth->authenticate(Object(MyApp\User\Auth\Adapter))#6 > > > > > > > > > > /Users/mbneto/Sites/myapp/application/controllers/IndexController.php(237): > > > > > > > > MyApp\User\Auth\Service->login(Array)#7 > > > > > > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Controller/Action.php(516): > > > > > > > > > > IndexController->auAction()#8 > > > > > > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Controller/Dispatcher/Standard.php(295): > > > > > > > > > > Zend_Controller_Action->dispatch('auAction')#9 > > > > > > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Controller/Front.php(954): > > > > > > > > > > > > > > Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), > > > > > > > > > > Object(Zend_Controller_Response_Http))#10 > > > > > > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Application/Bootstrap/Bootstrap.php(97): > > > > > > > > > > Zend_Controller_Front->dispatch()#11 > > > > > /usr/local/zend/share/ZendFramework/library/Zend/Application.php(366): > > > > Zend_Application_Bootstrap_Bootstrap->run()#12 > > > > /Users/mbneto/Sites/myapp/public/index.php(26): > > > Zend_Application->run()#13 > > > > {main} > > > > It is trying to > > > > load 'MyApp/Entity/Proxy/__CG__/MyApp/Entity/LogViewSummary.php' but > > it > > > > should really > > > > load 'MyApp/Entity/Proxy/__CG__MyApp/EntityLogViewSummary.php' for me > > it > > > > is > > > > like somewhere down the path the loader is getting confused and > trying > > to > > > > use other approach to load the generated proxy entities... > > > > > > > > > > > > ------------------------------ > > > > If you reply to this email, your message will be added to the > > discussion > > > > below: > > > > > > > > > > > > > > http://zend-framework-community.634137.n4.nabble.com/Problems-with-autoloader-after-using-Zend-Auth-authenticate-Zend-Session-tp4464133p4464133.html > > > > To unsubscribe from Zend Framework Community, click here< > > > > > > > > > > . > > > > NAML< > > > > > > http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > > > > > > > > > > > > -- > > > View this message in context: > > > > > > http://zend-framework-community.634137.n4.nabble.com/Problems-with-autoloader-after-using-Zend-Auth-authenticate-Zend-Session-tp4464133p4464230.html > > > Sent from the Zend Framework mailing list archive at Nabble.com. > > > > > > ------------------------------ > > If you reply to this email, your message will be added to the discussion > > below: > > > > > http://zend-framework-community.634137.n4.nabble.com/Problems-with-autoloader-after-using-Zend-Auth-authenticate-Zend-Session-tp4464133p4464790.html > > To unsubscribe from Zend Framework Community, click here< > http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4 > > > > . > > NAML< > http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml > > > > > > > -- > View this message in context: > http://zend-framework-community.634137.n4.nabble.com/Problems-with-autoloader-after-using-Zend-Auth-authenticate-Zend-Session-tp4464133p4465120.html > Sent from the Zend Framework mailing list archive at Nabble.com. >
