“Class XXX is not a valid entity or mapped super class” after moving the class in the filesystem

前端 未结 12 1176
悲哀的现实
悲哀的现实 2020-12-01 08:51

I had an entity class in Aib\\PlatformBundle\\Entity\\User.php

I had no problems trying to create its form class through

php app/ console doc

12条回答
  •  一向
    一向 (楼主)
    2020-12-01 09:24

    In my case the problem was solved by changing my servers cache from eAccelerator to APC. Apparently eAccelerator strips all the comments from files which breaks your annotations.

提交回复
热议问题