From 623228b4a9358b98b6452bbd2aba7046a481a22d Mon Sep 17 00:00:00 2001 From: monolit Date: Fri, 20 Apr 2007 10:11:49 +0000 Subject: [PATCH] avoid endless loops with __call in Doctrine_Query when calling non-existent overload method (join, parsejoin, parseparsejoin, ...) --- lib/Doctrine/Query.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Query.php b/lib/Doctrine/Query.php index a7845e749..8beb40ad8 100644 --- a/lib/Doctrine/Query.php +++ b/lib/Doctrine/Query.php @@ -644,7 +644,9 @@ class Doctrine_Query extends Doctrine_Hydrate implements Countable { break; default: $this->parts[$name] = array(); - $this->$method($args[0]); + if (method_exists($this, $method)) { + $this->$method($args[0]); + } throw new Doctrine_Query_Exception("Unknown overload method"); }