Symfony2 Error: No mapping file found named

后端 未结 5 924
我在风中等你
我在风中等你 2020-12-16 21:19

I am using Symfony2 and when i try to generate the schema ($ php app/console doctrine:generate:schema) i got an error..


    [Doctrine\\ORM\\Mapping\\MappingExcep         


        
5条回答
  •  悲哀的现实
    2020-12-16 21:46

    I agree with @ilanco 100%. In addition, the solution is to REMOVE any .xml file in folder, for example:

    C:\xampp\htdocs\localxyz\src\AppBundle/Resources/config/doctrine/Comment.orm.xml

    these xml files created when you run such command:

    C:\xampp\htdocs\localxyz>php app/console doctrine:mapping:import --force AppBundle xml

    Dung.

提交回复
热议问题