title: How to truncate a table using Doctrine 2?
body: <p>I assume that I need to build a native query to truncate a table using Doctine2.</p>
  
  <pre><code>$emptyRsm = new \Doctrine\ORM\Query\ResultSetMapping();
  $sql = 'TRUNCATE TABLE Article';
  $query = em()-&gt;createNativeQuery($sql, $emptyRsm);
  $query-&gt;execute();
  </code></pre>
  
  <p>This gives the error</p>
  
  <pre><code>SQLSTATE[HY000]: General error
  </code></pre>
  
  <p>What do I need to change to my code to make this work?</p>