doctrine/doctrine2 — pull request #297 by peterjmit (2012-03-06 11:22:52+00:00)
Title: Cast Doctrine\ORM\Query\Expr\Comparison::$_rightExpr to integer when false to fix DDC-1683

Hi

I posted the following bug report http://www.doctrine-project.org/jira/browse/DDC-1683 related to casting false values to strings.

```php
public function __construct($leftExpr, $operator, $rightExpr)
{
$this->_leftExpr = $leftExpr;
$this->_operator = $operator;
$this->_rightExpr = $rightExpr === false ? (int) $rightExpr : $rightExpr;
}
```