title: Symfony Profiler Query Stack Trace
body: <p>I have a portal made with Symfony 3.4 and Sonata Admin.  </p>
  
  <p>In a specific admin page there are a lot of <strong>generated queries</strong>. I used the profiler to track them down but I cannot see <strong>where</strong> they generated from:</p>
  
  <p><a href="https://i.stack.imgur.com/NHFsQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NHFsQ.png" alt="enter image description here"></a></p>
  
  <p>There is the same query repeated a lot of times with different IDs:</p>
  
  <p><a href="https://i.stack.imgur.com/ktlQE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ktlQE.png" alt="enter image description here"></a></p>
  
  <p>Is there a way to understand <strong>where</strong> they are generated? I saw that post and it seems impossible to do at the moment:</p>
  
  <p><a href="https://github.com/doctrine/DoctrineBundle/issues/722" rel="nofollow noreferrer">https://github.com/doctrine/DoctrineBundle/issues/722</a></p>
  
  <p>Can't I just drop a <code>dump/die</code> somewhere in the profiler to get the specific line?</p>