title: How to remove an entity class in a Symfony2 project
body: <p>When we initially designed our project, we had a couple of entities that to date are unused (and we don't plan to implement them in the near future). Ergo I want to remove them from my project. I would proceed like this (all steps manually performed):</p>
  
  <ol>
  <li>Remove all relations from my currently used entities.</li>
  <li>Delete the doctrime ORM file <code>src/Resources/config/doctrine</code></li>
  <li>Delete the class PHP file from <code>src/Entity</code></li>
  <li>Remove the table from the database</li>
  </ol>
  
  <p>What I would like to know: Are there any routines (e.g. console commands) that may support this procedure? For example, if I run</p>
  
  <pre><code>php app/console doctrine:schema:update --dump-sql
  </code></pre>
  
  <p>after having removed all relations and deleted the files, that I get the SQL statement that removes the according table(s)?</p>