fetchsql参数默认改完true 便于调用

This commit is contained in:
thinkphp
2015-02-25 09:34:19 +08:00
parent d28e27270c
commit 78bd79bb6c

View File

@@ -1294,7 +1294,7 @@ class Model {
* @param boolean $fetch 是否返回sql
* @return Model
*/
public function fetchSql($fetch){
public function fetchSql($fetch=true){
$this->options['fetch_sql'] = $fetch;
return $this;
}