Doctrine2 - “class” is not a valid entity or mapped super class

后端 未结 5 2063
庸人自扰
庸人自扰 2020-12-05 06:42

I get exception Uncaught exception \'Doctrine\\ORM\\Mapping\\MappingException\' with message \'Class \"Users\" is not a valid entity or mapped super class every

5条回答
  •  伪装坚强ぢ
    2020-12-05 07:22

    In my case, I received this error because I opened the doc block with /*** instead of /**:

    /***
     * @entity
     * @table(name="bans")
     */
    

提交回复
热议问题