title: Programmatically modify table's schema name in Doctrine2?
body: <p>I'd like to modify a table's schema/DB name at runtime <a href="http://docs.doctrine-project.org/en/latest/cookbook/sql-table-prefixes.html" rel="nofollow">as is possible with the table name</a>, but the <code>ClassMetadataInfo</code> class does not appear to expose an interface to get/set this property.</p>
  
  <p>I can make do with modifying table names at runtime if absolutely necessary, but it is not an ideal solution due to the amount of tables we would then have to store in a single schema/DB.</p>
  
  <p>Is there a way to achieve what I'd like to do? Thanks in advance.</p>
  
  <p>Note: I need to be able to provide a fully qualified table name using a schema placeholder in my annotation-based entity mapping (like <code>__schema_placeholder__.table_name</code>, for cross-database joins). At runtime I would then like to dynamically remap the entity from  <code>__schema_placeholder__.table_name</code> => <code>real_schema_name.table_name</code>.</p>