From 1c2496449042dc0df4b23902d1e8dd08b804c98a Mon Sep 17 00:00:00 2001 From: jackbravo Date: Tue, 28 Aug 2007 19:51:06 +0000 Subject: [PATCH] Added toString method to avoid some errors --- lib/Doctrine/Expression.php | 5 +++++ 1 file changed, 5 insertions(+) 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(); + } }