title: Doctrine2 and Postgres : Invalid input syntax for boolean : ""
body: <pre><code>    SQLSTATE[22P02]: Invalid text representation: 7 
      ERROR: invalid input syntax for type boolean: ""
      500 Internal Server Error - PDOException
  </code></pre>
  
  <p>It's the error message cause by Doctrine2 (2.2-DEV) and i'm afraid it's that bug which appeared again: <a href="http://www.doctrine-project.org/jira/browse/DDC-1394" rel="nofollow">http://www.doctrine-project.org/jira/browse/DDC-1394</a></p>
  
  <p>The query which causes this error is as follows:</p>
  
  <pre><code>public function getFindAllNonOthersQueryBuilder()
  {
      return $this
          -&gt;createQueryBuilder('t')
          -&gt;where('t.isOther = :isOther')
          -&gt;setParameter('isOther', false);
  }
  </code></pre>
  
  <p>The field isOther is mapped this way :</p>
  
  <pre><code>/**
   * @var boolean $isOther
   *
   * @ORM\Column(name="isOther", type="boolean")
   */
  protected $isOther = false;
  </code></pre>
  
  <p>What's happening in here?
  I've checked the type in the postgres database and it's a <code>boolean</code> too  </p>