Symfony doctrine auto_mapping Unrecognized

后端 未结 2 1232
鱼传尺愫
鱼传尺愫 2020-12-16 12:22

I have added SonataUserBundle and it is giving error

config.yml

doctrine: 
    orm:
        auto_generate_proxy_classes: \"%kernel.debug%\"
        n         


        
2条回答
  •  情书的邮戳
    2020-12-16 12:53

    Do you think it is necessary to configure the mappings manually if you set auto_mapping to true?

    Doctrine's auto_mapping feature loads annotation configuration from the Entity/ directory of each bundle and looks for other formats (e.g. YAML, XML) in the Resources/config/doctrine directory.

    http://symfony.com/doc/current/reference/configuration/doctrine.html#custom-mapping-entities-in-a-bundle

提交回复
热议问题