2

I'm new to Symfony and I'm developing an application. I've created the YAML files to generate the PHP entities. 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

With no more explanation. No file and line that point to the error.

Is there any way to make Symfony give more information?

4

1 回答 1

2

Type in app/console -h to get full list of available options. You can pass -v option to display more information:

-v  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
于 2016-05-04T11:48:27.010 回答