改进Query类的view方法 第二个参数默认值更改为true 获取全部的字段

This commit is contained in:
thinkphp
2016-09-21 14:22:56 +08:00
parent f029a433f0
commit 431c09e082

View File

@@ -771,7 +771,7 @@ class Query
* @param string $type JOIN类型
* @return $this
*/
public function view($join, $field = null, $on = null, $type = 'INNER')
public function view($join, $field = true, $on = null, $type = 'INNER')
{
$this->options['view'] = true;
if (is_array($join) && is_null($field)) {