From c39c7518897099b87645bb552b83e558e5e0faeb Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 22 Apr 2007 10:54:01 +0000 Subject: [PATCH] --- lib/Doctrine/Expression.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/Doctrine/Expression.php b/lib/Doctrine/Expression.php index 9ced16eb0..bf0d4ebb9 100644 --- a/lib/Doctrine/Expression.php +++ b/lib/Doctrine/Expression.php @@ -661,6 +661,15 @@ class Doctrine_Expression extends Doctrine_Connection_Module { throw new Doctrine_Expression_Exception('method not implemented'); } + /** + * returns arcus cosine SQL string + * + * @return string + */ + public function acos($value) + { + return 'ACOS(' . $value . ')'; + } /** * __call * @@ -671,5 +680,6 @@ class Doctrine_Expression extends Doctrine_Connection_Module if ($this->conn->getAttribute(Doctrine::ATTR_PORTABILITY) & Doctrine::PORTABILITY_EXPR) { throw new Doctrine_Expression_Exception('Unknown expression ' . $m); } + return $m . '()'; } }