title: Case with doctrine2, symfony2 and postgresql entities
body: <p>I have a problem with doctrine2 in symfony2 app with postgres database.</p>
  
  <p>I get error:</p>
  
  <pre><code>SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema "main" does not exist 
  </code></pre>
  
  <p>Problem is that my schema is Main not main. When I rename it, similar thing happends for table relation:</p>
  
  <pre><code>SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "main.brand_brandid_seq" does not exist 
  </code></pre>
  
  <p>Problem is case sensitivity and I guess maybe it have something to do with quoting or some doctrine configuration.</p>
  
  <p>Entity:</p>
  
  <pre><code>namespace MyB\Entity;
  
  /**
   * MyB\Entity\Brand
   *
   * @orm:Table(name="Main.Brand")
   * @orm:Entity
   */
  class Brand
  {
      /**
       * @var integer $brandid
       *
       * @orm:Column(name="BrandId", type="integer", nullable=false)
       * @orm:Id
       * @orm:GeneratedValue(strategy="SEQUENCE")
       * @orm:SequenceGenerator(sequenceName="Main.Brand_BrandId_seq", allocationSize="1", initialValue="1")
       */
      private $brandid;
  
      /**
       * @var string $brandname
       *
       * @orm:Column(name="BrandName", type="string", length=32, nullable=false)
       */
      private $brandname;
  
      /**
       * Set name.
       *
       * @param string $name
       */
      public function setName($name) {
          $this-&gt;brandname = $name;
      }
  }
  </code></pre>
  
  <p>Schema:</p>
  
  <pre><code>SET search_path = "Main", pg_catalog;
  
  CREATE SEQUENCE "Brand_BrandId_seq"
      START WITH 2
      INCREMENT BY 1
      NO MAXVALUE
      NO MINVALUE
      CACHE 1;
  
  
  SET default_tablespace = '';
  
  SET default_with_oids = false;
  
  
  CREATE TABLE "Brand" (
      "BrandId" integer DEFAULT nextval('"Brand_BrandId_seq"'::regclass) NOT NULL,
      "BrandName" character varying(32) NOT NULL
  );
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>        $reseller = new \MyB\Entity\Brand();
          $reseller-&gt;setName('Sasa');
  
          $em = $this-&gt;get('doctrine.orm.entity_manager');
          $em-&gt;persist($reseller);
          $em-&gt;flush();
  </code></pre>
  
  <p>Any idea?</p>