Symfony VarDumper Doctrine Sub Objects

86 views Asked by At

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.

1

There are 1 answers

1
tinos On

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.