首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >理论与注释:表注释不是注释

理论与注释:表注释不是注释
EN

Stack Overflow用户
提问于 2014-10-23 09:46:59
回答 1查看 962关注 0票数 1

在Windows环境中,一切都很好,当我在AIX环境上部署时,会发生一些奇怪的事情。

下面是一些实体类的示例:

代码语言:javascript
运行
复制
use Doctrine\ORM\Mapping as ORM;

/**
* AgentImpl
*
* @ORM\Table(name="AH2AGENT")
* @ORM\Entity
*/
class AgentImpl
{
  ....
}

我有个例外:

代码语言:javascript
运行
复制
[Semantical Error] The class "Doctrine\ORM\Mapping\Table" is not annotated with @Annotation. 
Are you sure this class can be used as annotation? 
If so, then you need to add @Annotation to the _class_ doc comment of "Doctrine\ORM\Mapping\Table". 
If it is indeed no annotation, then you need to add @IgnoreAnnotation("ORM\Table") to the _class_ doc comment of class Cramif\AccueilBundle\Entity\AgentImpl

那是什么意思?我该怎么做才能让它发挥作用?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-10-24 11:07:27

找到了解决办法。希望它能帮到别人。

事实上,我们使用的是eAccelarator :它去掉了注释,所以注释不能再工作了。

添加.htaccess或在vhost中添加:

代码语言:javascript
运行
复制
php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0

而且起作用了

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26525422

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档