Doctrine2 - No Metadata Classes to process

前端 未结 9 2056
清歌不尽
清歌不尽 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 06:52

    Uncomment the one of the following lines in bootstrap.php:

    // or if you prefer yaml or XML
    //$config = Setup::createXMLMetadataConfiguration(array(__DIR__."/config/xml"), $isDevMode);
    //$config = Setup::createYAMLMetadataConfiguration(array(__DIR__."/config/yaml"), $isDevMode);
    

    Which depends if you created yaml or xml meta config files...

    Hope this helps.

提交回复
热议问题