In the Windows environment, everything is fine and something strange happens when I deploy on the AIX environment.
Here is an example of some entity classes :
use Doctrine\ORM\Mapping as ORM;
/**
* AgentImpl
*
* @ORM\Table(name="AH2AGENT")
* @ORM\Entity
*/
class AgentImpl
{
....
}
I have this exception :
[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
What does that mean ? What should I do to make it work ?
Thanks
The solution is found. Hope it will help someone.
The fact is that we are using eAccelarator : it strips the comments out, so the annotation cannot work anymore.
add .htaccess or inside the vhost :
php_flag eaccelerator.enable 0
php_flag eaccelerator.optimizer 0
and it works
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.