更新时间:2021-10-05 08:57:03
好吧,我自己弄清楚了.我的问题是我的config.yml错误.我在config.yml中缺少 auto_mapping:true
行.
Ok, I figured it out myself. My problem is that my config.yml was wrong. I was missing the auto_mapping: true
line in my config.yml.
doctrine:
# (dbal stuff here)
orm:
auto_generate_proxy_classes: "%kernel.debug%"
auto_mapping: true
添加完之后,使用 php应用程序/控制台学说:generate:entities MySite/MyBundle/Entity/User
行自动生成一切正常
After adding that, everything auto-generates fine with the php app/console doctrine:generate:entities MySite/MyBundle/Entity/User
line