【问题标题】:Using Doctrine Annotations with Zend Guard在 Zend Guard 中使用 Doctrine Annotations
【发布时间】:2014-07-12 00:18:55
【问题描述】:

我刚刚购买了 Zend Guard,以保护我的应用程序,准备部署。在尝试在第一个客户站点上安装时,我们的应用程序似乎遇到了与 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.'

(显然我改了类名)

我想知道这是否是因为我们在 Doctrine 中使用了 DocBlock Annotations,并且想知道这些注释是否已被删除,或者 Doctrine 是否试图直接读取它们,而不使用 Zend Guard 模块。

有其他人有过这方面的经验吗?有没有办法在部署之前生成缓存的元数据?我不敢相信这是以前没有考虑过的......

感谢任何帮助

【问题讨论】:

  • 我在使用教义 orm 注释和 zend 守卫时也遇到了类似的问题。有什么更新吗?

标签: php zend-framework doctrine-orm doctrine zend-guard


【解决方案1】:

看到这个thread

解决办法是设置removePhpDoc = false

【讨论】:

    猜你喜欢
    • 2011-10-06
    • 2012-08-14
    • 2011-10-07
    • 2015-08-29
    • 1970-01-01
    • 2012-10-06
    • 2011-05-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多