From ef857c3de4ddcdb3b97a8283c1e09936f26b7be3 Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Thu, 18 Apr 2013 10:40:01 +0800 Subject: [PATCH] =?UTF-8?q?Model=E7=B1=BB=E5=A2=9E=E5=8A=A0=5Fcreate=5Ffil?= =?UTF-8?q?ter=20=E5=9B=9E=E8=B0=83=E6=96=B9=E6=B3=95=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E6=98=A0=E5=B0=84=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Think/Model.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Library/Think/Model.php b/Library/Think/Model.php index 1f40bdcb..facc3ee6 100644 --- a/Library/Think/Model.php +++ b/Library/Think/Model.php @@ -302,7 +302,7 @@ class Model { } // 删除成功后的回调方法 protected function _after_delete($data,$options) {} - + /** * 查询数据集 * @access public @@ -471,9 +471,6 @@ class Model { return false; } - // 检查字段映射 - $data = $this->parseFieldsMap($data,0); - // 状态 $type = $type?$type:(!empty($data[$this->getPk()])?self::MODEL_UPDATE:self::MODEL_INSERT); @@ -496,7 +493,7 @@ class Model { } } } - + // 过滤创建的数据 $this->_create_filter($data); // 赋值当前数据对象 $this->data = $data;