title: Converting MySQL BIT field to BOOLEAN with Doctrine
body: <p>could anyone tell me what's wrong with my code.</p>
  
  <p>Using Doctrine 2 with PHP 5.3 MySQL 5.5</p>
  
  <p>My YAML mapping for a BIT field called IsDefault which has values of 1 or 0 depeding if I want the value to be true or false in my application:</p>
  
  <pre><code>  IsDefault:
      type: boolean
      nullable: false
  </code></pre>
  
  <p>The generated Entity is:</p>
  
  <pre><code>/**
  * @var boolean $IsDefault
  */
  private $IsDefault;
  
  
  /**
   * Set IsDefault
   *
   * @param boolean $isDefault
   * @return Model
   */
  public function setIsDefault($isDefault)
  {
      $this-&gt;IsDefault = $isDefault;
      return $this;
  }
  
  /**
   * Get IsDefault
   *
   * @return boolean 
   */
  public function getIsDefault()
  {
      return $this-&gt;IsDefault;
  }
  </code></pre>
  
  <p>Unfortunately when accessing the data in my app every row returns IsDefault as TRUE.
  Does anyone know why?</p>