Doctrine2 - No Metadata Classes to process

前端 未结 9 2077
清歌不尽
清歌不尽 2020-12-13 06:15

Something is wrong with documentation or me. I do all what documentation says.

When i put in terminal :

$ php vendor/bin/doctrine orm:schema-tool:c         


        
9条回答
  •  余生分开走
    2020-12-13 07:06

    If you're using the XML mapping (using Setup::createXMLMetadataConfiguration()), you might want to pay attention to the following:

    • That your XML mapping files ends by .dcm.xml, not only by .xml.
    • That your XML file contains the full entity classname, inclusive of the namespace. For example, for a class Company\Solution\Models\User, you must have the Company.Solution.Models.User.dcm.xml mapping file in your XML path.

提交回复
热议问题