From 9fbde039baf8871cf2dd286bf8883a124f153aa3 Mon Sep 17 00:00:00 2001 From: meus Date: Wed, 12 Sep 2007 21:56:11 +0000 Subject: [PATCH] remove caching of args. it is just plain wrong --- lib/Doctrine/Record.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index a274379c6..77e0bb7d1 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -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); }