I'm using doctrine the same way as the documentation
use Doctrine\ORM\Mapping as ORM;
/**
* Class User
*
* @ORM\Entity
* @ORM\Table(name="users")
*/
class User
{}
But this syntaxe (with @ORM ) only work if we use the annotationReader and not simpeAnnotationReader