Doctrine command: how to display file and line where error occured

421 Views Asked by At

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?

1

There are 1 best solutions below

0
Vadim Ashikhman On BEST ANSWER

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