diff --git a/lib/Doctrine/Expression.php b/lib/Doctrine/Expression.php index cc805bae8..2f429b219 100644 --- a/lib/Doctrine/Expression.php +++ b/lib/Doctrine/Expression.php @@ -94,4 +94,9 @@ class Doctrine_Expression return $this->_expression; } + + public function __toString() + { + return $this->getSql(); + } }