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

前端 未结 12 1208
悲哀的现实
悲哀的现实 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:11

    big thx to Mark Fu and mogoman

    I knew it had to be somewhere in the config.yml... and being able to test it against the

    app/console doctrine:mapping:info
    

    really helped!

    In fact, this command just simply stops at an error... no feedback, but when everything is fine you should be able to see all your entities listed.

提交回复
热议问题