Have you ever try print_r($entity)? Apache crash? Yes โ exactly. Doctrine2 entity has massive recursion and trying dump by print_r give Apache crash. How to do this safely and clean?
1 | echo '<pre>'; |
2 | \Doctrine\Common\Util\Debug::dump($entity); |
3 | echo '</pre>'; |
Have a productive day