php - Using Doctrine Annotations with Zend Guard

784

I have just purchased Zend Guard in order to protect my application, ready for deployment. On attempting an install on the first customer site, it appears that our application encounters a fundamental error related to Doctrine.

Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class 
"Module\Entity\MyClass" sub class of "S2Common\Object\DoctrineObject" is not a 
valid entity or mapped super class.'

(obviously I have altered the class name)

I am wondering if this is because we are using DocBlock Annotations in Doctrine and wondering whether these are either removed, or whether Doctrine is trying to read them directly, without engaging the Zend Guard Module.

Has anyone else had any experience of this? Is there a way to generate the cached metadata prior to deployment? I can't believe that this hasn't been thought out before...

Any help is appreciated

222

Answer

Solution:

See this thread

The solution could be to setremovePhpDoc = false

People are also looking for solutions to the problem: php - Function with string parameter

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.