title: Doctrine swap out table at runtime
body: <p>Typically when you implement a entity using Doctrine you map it to a table explicitly:</p>
  
  <pre><code>&lt;?php
  /**
   * @Entity
   * @Table(name="message")
   */
  class Message
  {
      //...
  }
  </code></pre>
  
  <p>Or you reply on doctrine to implicitly map your class name to a table...I have several tables which are identical in schema but I do not wish to re-create the class for each time...there fore at runtime (dynamically) I would like to change the table name accordingly.</p>
  
  <p>Where do I start or what would I look into overriding to implement this odd requirement???</p>