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

前端 未结 12 1170
悲哀的现实
悲哀的现实 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条回答
  •  萌比男神i
    2020-12-01 09:14

    In my case on my mac I was using src/MainBundle/Resource/Config/Doctrine, of course it worked on Mac but it didn't work on production Ubuntu server. Once renamed Config to config and Doctrine to doctrine, the mapping files were found and it started working.

提交回复
热议问题