public function __call($dbMethod, $arguments) { $res = call_user_func_array([$this->db($this->getDbConf()), $dbMethod], $arguments); if ($res instanceof Interfaces\Db) { return $this; //不是返回数据直接返回model实例 } else { return $res; } }