The problem that I am getting with the website bulid in zend framework2 with Doctrine 2 as ORM.It works perfect on local server .But its giving me error when deployed on production live server.below is the error
"Class X is not a valid entity or mapped super class"
Can anyone have any solution for it.
I covered this in a blog post a while back. Basically, this is happening because eAccelerator is stripping out docblock annotations as an "optimisation". The problem is that Doctrine is relying on these annotations to map your entities.
There are two possible solutions:
--with-eaccelerator-doc-comment-inclusionflag, or use a newer version of eAccelerator which disables this behaviour by default.