swoft
swoft copied to clipboard
swoft 使用数据库模型查询数据时,设置隐藏字段不生效
$brands = Brand::new()->setModelHidden(['updated_at'])->where($where)->get()->toArray();
如上代码: 在查询数据库时,设置掩藏updated_at字段,结果不生效,所有数据都返回了
https://github.com/swoft-cloud/swoft-component/pull/595/commits/5559a7c53f74f54c02f063d08899d0d7b81427f2