修正relation关联模型一处警告错误

This commit is contained in:
thinkphp
2016-02-01 23:43:48 +08:00
parent 4cd6043c2a
commit 4c1fe8f556

View File

@@ -97,9 +97,10 @@ trait Relation
* 对保存到数据库的数据进行处理 * 对保存到数据库的数据进行处理
* @access protected * @access protected
* @param mixed $data 要操作的数据 * @param mixed $data 要操作的数据
* @return boolean * @param string $type insert 或者 update
* @return array
*/ */
protected function _write_data($data) protected function _write_data($data, $type)
{ {
$this->_before_write($data); $this->_before_write($data);
return $data; return $data;