我是 Symfony 新手,正在开发一个应用程序。 我已经创建了 YAML 文件来生成 PHP 实体。当我运行此命令时:
php app/console doctrine:schema:update --force
我得到这个异常:
[Symfony\Component\Debug\Exception\ContextErrorException] Notice: Undefined index: mappedBy
没有更多解释。没有文件和行指向错误。
有什么方法可以让 Symfony 提供更多信息吗?
最佳答案
输入app/console -h
以获取可用选项的完整列表。您可以通过 -v
选项来显示更多信息:
-v Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
关于symfony - Doctrine 命令 : how to display file and line where error occured,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37025723/