mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Model类添加field方法 用于设置允许写入的字段 改进Query类的field方法
This commit is contained in:
@@ -367,6 +367,9 @@ class Query
|
||||
*/
|
||||
public function field($field, $except = false, $tableName = '', $prefix = '', $alias = '')
|
||||
{
|
||||
if (empty($field)) {
|
||||
return $this;
|
||||
}
|
||||
if (is_string($field)) {
|
||||
$field = explode(',', $field);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user