title: Doctrine - PostgreSQL - Uppercase and Spaces in Table / Field names
body: <p>Having issues with Doctrine 2.3 and PostgreSQL with Spaces and Upper case Field / Table names</p>
  
  <p>Example: ( Yes we are working on migrating away from this )</p>
  
  <pre><code>SELECT "Field Name"
  FROM "Table Name"
  </code></pre>
  
  <p>We also have a mix of the two formats </p>
  
  <pre><code>SELECT "Field Name", another_field_name
  FROM "Table Name", another_table_name
  </code></pre>
  
  <p>When using doctrine I'm getting a PDOException. When looking at the error I see that there are no double quotes around Fields / Tables ( names ) that have Upper case and Spaces.</p>
  
  <p>Is there a fix? Workaround? </p>
  
  <p>Here is an example of what Doctrine is generating</p>
  
  <pre><code>SELECT t0.TheId AS theid1, t0.Name AS name2, t0.User AS user3
  FROM The Table t0 
  WHERE t0.TheId = 1234
  </code></pre>
  
  <p>Here is how I need it</p>
  
  <pre><code>SELECT t0."TheId" AS theid1, t0."Name" AS name2, t0."User" AS user3
  FROM "The Table" t0 
  WHERE t0."TheId" = 1234
  </code></pre>