1
0
mirror of synced 2024-12-13 22:56:04 +03:00

remove caching of args. it is just plain wrong

This commit is contained in:
meus 2007-09-12 21:56:11 +00:00
parent d6b90332b7
commit 9fbde039ba

View File

@ -1513,15 +1513,14 @@ abstract class Doctrine_Record extends Doctrine_Record_Abstract implements Count
{
static $methods = array();
if ( isset( $methods[$method])) {
$methodArray = $methods[$method];
$template = $methodArray["template"];
$template = $methods[$method];
$template->setInvoker($this);
return call_user_func_array( array( $template, $method ), $methodArray["args"]);
return call_user_func_array( array($template, $method ), $args);
}
foreach ($this->_table->getTemplates() as $template) {
if (method_exists($template, $method)) {
$template->setInvoker($this);
$methods[$method] = array("template" => $template, "args" => $args);
$methods[$method] = $template;
return call_user_func_array(array($template, $method), $args);
}