title: Delete records in Doctrine
body: <p>I'm trying to delete a record in Doctrine, but I don't know why it's not deleting.</p>
  
  <p><strong>Here is my Code:</strong></p>
  
  <pre><code>function del_user($id)
  {
      $single_user = $entityManager-&gt;find('Users', $id);
  
      $entityManager-&gt;remove($single_user);
  
      $entityManager-&gt;flush();
  }
  </code></pre>
  
  <p><strong>Plus: How can I echo query to see what going on here?</strong></p>