mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22:48 +08:00
改进Query类的view方法 第二个参数默认值更改为true 获取全部的字段
This commit is contained in:
@@ -771,7 +771,7 @@ class Query
|
|||||||
* @param string $type JOIN类型
|
* @param string $type JOIN类型
|
||||||
* @return $this
|
* @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;
|
$this->options['view'] = true;
|
||||||
if (is_array($join) && is_null($field)) {
|
if (is_array($join) && is_null($field)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user