title: How to programmatically change table prefix in symfony2-doctrine
body: <p>I setup my symfony3 application to use 2 different databases. they are pretty much similar, structure of tables are the same and so the fields. The problem is, for example, the article table in db1 is called db1_article and article table in db2 is called db2_article. They have different data but same structure.</p>
  
  <p>Now, I am setting up an entity for articles like that:</p>
  
  <pre><code>/**
  * @ORM\Entity
  * @ORM\Table(name="db1_article")
  */
  class Article {
  ...
  }
  </code></pre>
  
  <p>I'd prefer not to create a different entity for the same table in db2, can I dinamically define the table name somewhere in order to avoid duplications?</p>
  
  <p>thanks</p>