简体   繁体   English

Doctrine 命令:如何显示发生错误的文件和行

[英]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.

相关问题 教义错误:“驱动程序(...)中发生异常” - Doctrine Error: “An exception occured in driver (…)” 如何从Symfony 2项目中使用Doctrine 2命令行界面? - How to use Doctrine 2 Command Line Interface from inside a Symfony 2 project? 如何解决教义中出现的例外(Symfony 4)? - How can I fix an exception occured in doctrine (Symfony 4)? 具有Doctrine查询生成器的Symfony 3.0:[语法错误]行0,列7:错误:预期的已知函数,得到了“ WHERE” - Symfony 3.0 with Doctrine query builder: [Syntax Error] line 0, col 7: Error: Expected known function, got 'WHERE' 命令主义:迁移:迁移错误 - Command doctrine:migrations:migrate error 具有preUpdate,prePersist的学说命令行插入 - Doctrine command line insert with preUpdate, prePersist 将Doctrine 2命令行配置为外部库 - Doctrine 2 command line configuration as an external lib Symfony3.4 / Doctrine迁移-驱动程序中发生异常:SQLSTATE [HY000] [2002]没有此类文件或目录 - Symfony3.4/Doctrine migrations - An exception occured in driver: SQLSTATE[HY000] [2002] No such file or directory 查询生成器错误在doctrine symfony中使用where in - Query Builder Error in doctrine symfony using where in 教义QueryBuilder:使用别名时出现/ where错误 - Doctrine QueryBuilder: having / where error using alias
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM