From e77e7327d4bdef9512b1dde7fdb0dccfb7222779 Mon Sep 17 00:00:00 2001 From: ThinkPHP Date: Fri, 26 Apr 2013 21:07:02 +0800 Subject: [PATCH] =?UTF-8?q?Model=E7=B1=BB=5FparseType=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=B9=E5=8F=82=E6=95=B0=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E7=9A=84=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Library/Think/Model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Think/Model.php b/Library/Think/Model.php index b3fd338f..f127d63e 100644 --- a/Library/Think/Model.php +++ b/Library/Think/Model.php @@ -431,7 +431,7 @@ class Model { * @return void */ protected function _parseType(&$data,$key) { - if(isset($this->fields['_type'][$key])) { + if(empty($this->options['bind'][':'.$key]) && isset($this->fields['_type'][$key])) { $fieldType = strtolower($this->fields['_type'][$key]); if(false === strpos($fieldType,'bigint') && false !== strpos($fieldType,'int')) { $data[$key] = intval($data[$key]);