[英]Doctrine command: how to display file and line where error occured
I'm new to Symfony and I'm developing an application.我是 Symfony 的新手,我正在开发一个应用程序。 I've created the YAML files to generate the PHP entities.我已经创建了 YAML 文件来生成 PHP 实体。 When I run this command:当我运行此命令时:
php app/console doctrine:schema:update --force
I get this exception:我得到这个例外:
[Symfony\\Component\\Debug\\Exception\\ContextErrorException] Notice: Undefined index: mappedBy [Symfony\\Component\\Debug\\Exception\\ContextErrorException] 注意:未定义索引:mappedBy
With no more explanation.不再解释。 No file and line that point to the error.没有指向错误的文件和行。
Is there any way to make Symfony give more information?有什么办法可以让 Symfony 提供更多信息?
Type in app/console -h
to get full list of available options.输入app/console -h
以获取可用选项的完整列表。 You can pass -v
option to display more information:您可以通过-v
选项来显示更多信息:
-v Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.