public function __call($m, $a) { $q = $this->getCurrentReadQuery(); if (method_exists($q, $m)) { return call_user_func_array(array($q, $m), $a); } throw new Exception("Undefined method {$m}"); }