在Windows环境中,一切都很好,当我在AIX环境上部署时,会发生一些奇怪的事情。
下面是一些实体类的示例:
use Doctrine\ORM\Mapping as ORM;
/**
* AgentImpl
*
* @ORM\Table(name="AH2AGENT")
* @ORM\Entity
*/
class AgentImpl
{
....
}
我有个例外:
[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
那是什么意思?我该怎么做才能让它发挥作用?
谢谢
发布于 2014-10-24 11:07:27
找到了解决办法。希望它能帮到别人。
事实上,我们使用的是eAccelarator :它去掉了注释,所以注释不能再工作了。
添加.htaccess或在vhost中添加:
php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0
而且起作用了
https://stackoverflow.com/questions/26525422
复制相似问题