1
0
mirror of synced 2025-01-29 19:41:45 +03:00

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

(join, parsejoin, parseparsejoin, ...)
This commit is contained in:
monolit 2007-04-20 10:11:49 +00:00
parent 13840516a9
commit 623228b4a9

View File

@ -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");
}