Commit 623228b4 authored by monolit's avatar monolit

avoid endless loops with __call in Doctrine_Query when calling non-existent overload method

(join, parsejoin, parseparsejoin, ...)
parent 13840516
......@@ -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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment