0

When i use VarDumper of Symfony (symfony/var-dumper) to dump an Doctrine object and do have collection of subobject but the dumper dont display those sub-objects ?

Is it normal ?

I use :

        echo '<pre>';
    \Doctrine\Common\Util\Debug::dump($order, 5);
    echo '</pre>';

Thanks in advance.

psylo66
  • 608
  • 11
  • 26
  • http://api.symfony.com/3.2/Symfony/Component/VarDumper/Cloner/Data.html#method_withMaxDepth Maybe helps. – Canser Yanbakan Feb 22 '17 at 12:30
  • This is not symfony varDumper, it's doctrine dump.http://symfony.com/doc/current/components/var_dumper.html – goto Feb 22 '17 at 12:57

1 Answers1

0

You say you are using symfony dump but in your code you have a doctrine dump.

Despite that the 'dump' only show sub objects if they are not lazy loaded.

tinos
  • 562
  • 6
  • 12
  • Sorry for real i dump with this 'dump($order)' but it doest not work and subobjects not showed so i use the code below. – psylo66 Feb 23 '17 at 15:10